Skip to content

Instantly share code, notes, and snippets.

@mattn
Created July 8, 2009 06:33
Show Gist options
  • Select an option

  • Save mattn/142631 to your computer and use it in GitHub Desktop.

Select an option

Save mattn/142631 to your computer and use it in GitHub Desktop.
diff -u Coro.orig/Handle.pm Coro/Handle.pm
--- Coro.orig/Handle.pm 2009-07-08 15:22:00.000000000 +0900
+++ Coro/Handle.pm 2009-07-08 15:29:15.531250000 +0900
@@ -143,7 +143,7 @@
=cut
-sub connect { connect tied(${$_[0]})->[0], $_[1] or $! == EINPROGRESS or $! == WSAEINPROGRESS }
+sub connect { connect tied(${$_[0]})->[0], $_[1] or $! == EINPROGRESS or $! == WSAEINPROGRESS or $! == WSAEWOULDBLOCK }
sub bind { bind tied(${$_[0]})->[0], $_[1] }
sub listen { listen tied(${$_[0]})->[0], $_[1] }
sub getsockopt { getsockopt tied(${$_[0]})->[0], $_[1], $_[2] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment