Commit e864288a authored by Denis Bilenko's avatar Denis Bilenko

server: a little bit more descriptive variable name

parent a24bdfd8
...@@ -94,12 +94,12 @@ class StreamServer(Greenlet): ...@@ -94,12 +94,12 @@ class StreamServer(Greenlet):
self.delay = self.min_delay self.delay = self.min_delay
self.pool.spawn(self.handle, client_socket, address) self.pool.spawn(self.handle, client_socket, address)
del client_socket, address del client_socket, address
except socket.error, e: except socket.error, ex:
if e[0] in FATAL_ERRORS: if ex[0] in FATAL_ERRORS:
self.log_message('ERROR: %s failed with %s' % (self, e)) self.log_message('ERROR: %s failed with %s' % (self, ex))
return e return ex
else: else:
self.log_message('WARNING: %s: ignoring %s (sleeping %s seconds)' % (self, e, self.delay)) self.log_message('WARNING: %s: ignoring %s (sleeping %s seconds)' % (self, ex, self.delay))
sleep(self.delay) sleep(self.delay)
self.delay = min(self.max_delay, self.delay*2) self.delay = min(self.max_delay, self.delay*2)
finally: finally:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment