Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1780

A socket will be returned to the pool in an undefined state if an Error subclass is thrown while reading from it

      Error sub-classes thrown within the DBTCPConnector.innerCall method's try block are not caught like RuntimeException subclasses are, which can result in the socket being returned to the pool in a partially read state.

      This will likely result in a read from the middle of the previous response the next time the socket is checked out of the pool.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: