mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
...
This commit is contained in:
parent
eda12b1507
commit
9334ab524e
@ -468,7 +468,7 @@ class ServerLoop(object):
|
|||||||
(readable if conn.read_buffer.has_data else read_needed).append(s)
|
(readable if conn.read_buffer.has_data else read_needed).append(s)
|
||||||
|
|
||||||
for s, conn in remove:
|
for s, conn in remove:
|
||||||
self.log.debug('Closing connection because of extended inactivity')
|
self.log('Closing connection because of extended inactivity: %s' % conn.state_description)
|
||||||
self.close(s, conn)
|
self.close(s, conn)
|
||||||
|
|
||||||
if readable:
|
if readable:
|
||||||
@ -505,7 +505,7 @@ class ServerLoop(object):
|
|||||||
if not conn.ready:
|
if not conn.ready:
|
||||||
self.close(s, conn)
|
self.close(s, conn)
|
||||||
except JobQueueFull:
|
except JobQueueFull:
|
||||||
self.log.exception('Server busy handling request: ' % conn.state_description)
|
self.log.exception('Server busy handling request: %s' % conn.state_description)
|
||||||
if conn.ready:
|
if conn.ready:
|
||||||
if conn.response_started:
|
if conn.response_started:
|
||||||
self.close(s, conn)
|
self.close(s, conn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user