TypeError raised when max_pool_size is None in python 3.x

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 2.6.2
    • Affects Version/s: 2.6
    • Component/s: None
    • None
    • Environment:
      Linux Centos
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      if max_pool_size is set to None, then if _return_socket is ever called an exception is thrown. The offending code is in pool.py in the _return_socket method.

      The line:-

      if (len(self.sockets) < self.max_size and sock_info.pool_id == self.pool_id):

      throws:-

      TypeError: unorderable types: int() < NoneType()

      This is easy to work around as just need to set the pool size although the problem is occurring in a third party library I am using because its using the depreciated Connection class which defaults to max_pool_size of None.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Phillip Frantz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: