Merge pull request #112 from BenjaminSchaaf/socket-fix
Fix socket not being in a connected state after connectStream
This commit is contained in:
commit
cf33c3d859
|
@ -134,7 +134,7 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets
|
||||||
|
|
||||||
auto ret = () @trusted { return connect(cast(sock_t)sock, address.name, address.nameLen); } ();
|
auto ret = () @trusted { return connect(cast(sock_t)sock, address.name, address.nameLen); } ();
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
m_loop.m_fds[sock].specific.state = ConnectionState.connected;
|
m_loop.m_fds[sock].streamSocket.state = ConnectionState.connected;
|
||||||
on_connect(sock, ConnectStatus.connected);
|
on_connect(sock, ConnectStatus.connected);
|
||||||
} else {
|
} else {
|
||||||
auto err = getSocketError();
|
auto err = getSocketError();
|
||||||
|
|
Loading…
Reference in a new issue