Revert "Workaround for libev handle caching bug on windows"
authorBert Belder <bertbelder@gmail.com>
Thu, 3 Feb 2011 12:11:29 +0000 (13:11 +0100)
committerRyan Dahl <ry@tinyclouds.org>
Thu, 3 Feb 2011 22:05:40 +0000 (14:05 -0800)
This reverts commit 25d0e38048592eccf15e73c26191395eb0ba85cf.

deps/libev/ev.c
deps/libev/ev.h
src/node_net.cc

index 63237d7442231b3eb7dab19894190827f30a1b3a..6d8676d42dfdf0ee2a94628f554782d11209b887 100644 (file)
@@ -1033,23 +1033,6 @@ fd_kill (EV_P_ int fd)
     }
 }
 
-/* notify libev that an fd was closed. required on windows when a closed */
-/* fd may be reused during before backend_modify is called again */
-void noinline
-ev_fd_closed(EV_P_ int fd)
-{
-#ifdef _WIN32
-  if (fd < anfdmax) {
-    ANFD *anfd = anfds + fd;
-
-    backend_modify (EV_A_ fd, anfd->events, 0);
-    anfd->events = 0;
-
-    fd_change (EV_A_ fd, EV__IOFDSET | EV_ANFD_REIFY);
-  }
-#endif
-}
-
 /* check whether the given fd is actually valid, for error recovery */
 inline_size int
 fd_valid (int fd)
index 65595c8629ef24edc54e702912f2d64c18c88eaa..9edf6564e944c5df87b2af8a458b87bf8a142387 100644 (file)
@@ -731,10 +731,6 @@ int  ev_clear_pending  (EV_P_ void *w);
 void ev_io_start       (EV_P_ ev_io *w);
 void ev_io_stop        (EV_P_ ev_io *w);
 
-/* notify libev that an fd was closed. required on windows when a closed */
-/* fd may be reused during before backend_modify is called again */
-void ev_fd_closed(EV_P_ int fd);
-
 void ev_timer_start    (EV_P_ ev_timer *w);
 void ev_timer_stop     (EV_P_ ev_timer *w);
 /* stops if active and no repeat, restarts if active and repeating, starts if inactive and repeating */
index e7a24ff0e56366f3dcd1c00c175c7ca11e7fe8ce..80d1f7963cbf1e6ad57ad5354be441a6804d9b2a 100644 (file)
@@ -374,10 +374,6 @@ static Handle<Value> Close(const Arguments& args) {
     return ThrowException(ErrnoException(errno, "close"));
   }
 
-#ifdef __MINGW32__
-  ev_fd_closed(EV_DEFAULT_UC_ fd);
-#endif
-
   return Undefined();
 }