Commit 938b8f71 authored by Morten Hustveit's avatar Morten Hustveit

Wait for writeable, rather than readable, socket on connect.

parent d8958a54
...@@ -191,7 +191,7 @@ public: ...@@ -191,7 +191,7 @@ public:
if (pollResult == 0) { if (pollResult == 0) {
// Not ready yet. We can safely use the edge-triggered observer. // Not ready yet. We can safely use the edge-triggered observer.
return observer.whenBecomesReadable(); return observer.whenBecomesWritable();
} else { } else {
// Ready now. // Ready now.
return kj::READY_NOW; return kj::READY_NOW;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment