Commit 7dd63203 authored by Kenton Varda's avatar Kenton Varda

Merge pull request #157 from mortehu/master

Wait for writeable, rather than readable, socket on connect.
parents d8958a54 938b8f71
......@@ -191,7 +191,7 @@ public:
if (pollResult == 0) {
// Not ready yet. We can safely use the edge-triggered observer.
return observer.whenBecomesReadable();
return observer.whenBecomesWritable();
} else {
// 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