Public » MiniRedis Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

tip avoid closing, shutting down, and removing closed, shutdown, or removed clients

Changeset 4dbfb7ea2330

Parent ed1817ad2e2c

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to one file · Browse files at 4dbfb7ea2330 Showing diff from parent ed1817ad2e2c Diff from another changeset...

Change 1 of 1 Show Entire File miniredis.py Stacked
 
335
336
337
338
339
 
 
 
 
340
341
342
343
344
 
335
336
337
 
 
338
339
340
341
342
 
343
344
345
@@ -335,10 +335,11 @@
  return RedisError('unknown data type')     def handle_quit(self, client): - client.socket.shutdown(socket.SHUT_RDWR) - client.socket.close() + if client in self.clients: + del self.clients[client.socket] + client.socket.shutdown(socket.SHUT_RDWR) + client.socket.close()   self.log(client, 'QUIT') - del self.clients[client.socket]   return False     def handle_save(self, client):