Properly handle EINPROGRESS error from connect() 39/206139/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 10 May 2019 08:39:20 +0000 (10:39 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Tue, 14 May 2019 14:20:48 +0000 (14:20 +0000)
commit7e92390bd4eadf25444459041a7a25282603d07d
treef182bc9ab3e424872dda7c231ce9ef29ff2106af
parent7888a698c393a6e6cf77b7681d5dbf8c209f54e9
Properly handle EINPROGRESS error from connect()

If connect() fails with EINPROGRESS, the connection may be completed
by polling/selecting the socket for writing. This commit replaces
POLLIN with POLLOUT to handle it properly.

Change-Id: If332634c6d517d7ec00f19a5970e7fe16ee9bb06
(cherry picked from commit e4adb53b99b0011037a3dfc408026cc6a40be349)
src/common/connection.cpp