#NEWLINE# def _put_conn( self , conn ) : #NEWLINE# #INDENT# '\n        Put a connection back into the pool.\n\n        :param conn:\n            Connection object for the current host and port as returned by\n            :meth:`._new_conn` or :meth:`._get_conn`.\n\n        If the pool is already full, the connection is closed and discarded\n        because we exceeded maxsize. If connections are discarded frequently,\n        then maxsize should be increased.\n\n        If the pool is closed, then the connection will be closed and discarded.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# self . pool . put ( self , block = False ) #NEWLINE# return #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# except Full : #NEWLINE# #INDENT# log . warning ( 'Connection pool is full, discarding connection: %s' , self . host ) #NEWLINE# #UNINDENT# if conn : #NEWLINE# #INDENT# conn . close ( )