In AsyncSocket::handleErrMessages() inside the loop check if the callback was not...
authorMaxim Georgiev <maxgeorg@fb.com>
Mon, 15 May 2017 19:01:31 +0000 (12:01 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 15 May 2017 19:05:51 +0000 (12:05 -0700)
commit98ceba40ce4c11f041098a979eff16cb9988f46a
treec2e297863d111e8704bbac1fb82c35a4fb25d7c7
parent7bdb20f850299dc14045ef9e00b8b90a1dce17b7
In AsyncSocket::handleErrMessages() inside the loop check if the callback was not uninstalled

Summary: AsyncSocket::handleErrMessages() should check if the error message callback is still installing before calling it, since the callback could be uninstaled on the previous loop iteration.

Reviewed By: yfeldblum

Differential Revision: D5051001

fbshipit-source-id: fc01932c0d36bd8f72bf1905f12211fb83d28674
folly/io/async/AsyncSocket.cpp
folly/io/async/test/AsyncSocketTest.h
folly/io/async/test/AsyncSocketTest2.cpp