redis icon indicating copy to clipboard operation
redis copied to clipboard

double return not properly handled

Open stchang opened this issue 11 years ago • 0 comments

Double return of a connection results in two copies of the connection in the idle connection queue.

This results in an error when trying to disconnect the conns:

(define p (make-connection-pool))
(define conn (connection-pool-lease p))
(connection-pool-return conn)
(connection-pool-return conn)
(kill-connection-pool p)
(sleep 2) ; need this otherwise program shutdown will take over

error: write-bytes: output port is closed

Need some sort of synchronization or check to prevent this.

stchang avatar Jul 18 '14 21:07 stchang