Commit Graph

40 Commits (35e32225d122b063713dead992068d38b687ad04)

Author SHA1 Message Date
Bert Belder 8ee9c53c77 Fix problem with libev/select on windows.
Patch by Marc Lehmann.
This fix should be included in the next libev release.
2011-02-03 14:05:51 -08:00
Bert Belder d8d627e2d4 Revert "Workaround for libev handle caching bug on windows"
This reverts commit 25d0e38048.
2011-02-03 14:05:40 -08:00
Bert Belder 25d0e38048 Workaround for libev handle caching bug on windows
The windows socket api uses handles, not fds. Libev caches the handle
associated with an fd, and uses this handle when updating the (also cached)
handle set that goes into select(). When an fd is closed and subsequently
re-used before the event loop returns to libev, libev fails to detect
properly that the handle changed. And even if it does, the cached handle of
the closed socket is overwritten by the new handle, so by the time libev
tries to update the select fdset it has forgotten which handle to remove
from it. This is solved by a simple hook ev_fd_closed that makes it clear
its caches before the fd is re-used.
2011-01-24 10:34:18 -08:00
Bert Belder b9540c28e9 Libev windows fixes 2011-01-11 14:48:07 -08:00
Ryan Dahl b7419dfaad Upgrade libev to 4.3 2011-01-11 08:47:18 -08:00
Ryan Dahl d0beac70f4 Revert "Simplify next tick logic by looping around ev_loop"
This reverts commit 241ea7e595.

Fixes GH-511: https://github.com/ry/node/issues/issue/511
2010-12-16 18:41:13 -08:00
Bert Belder 4a329af418 win: Waf doesn't detect sys/select.h on mingw, but its there for sure 2010-11-29 23:48:34 -08:00
Bert Belder 4c16dd7c5c win: Make libev use send instead of write for sockets
It looks like MINGW doesn't like to write() to sockets.
If wrong, revert this patch
2010-11-29 23:47:48 -08:00
Tom Hughes 446beebd79 Add cmake build support.
Squashed commit of ca128f7dcd28cbcfba154c8577ed54d4aa71dd02 with
contributions from Mark Constable (markc@renta.net) and Daniel Gröber
(darklord@darkboxed.org).
2010-11-22 13:32:49 -08:00
Ryan Dahl 241ea7e595 Simplify next tick logic by looping around ev_loop
This is also in preparation for the writev patch, which needs to dump
remaining data after ev_loop ends.
2010-11-17 13:22:11 -08:00
Ryan Dahl 97c9745063 Back to WAF
Too much instability right now. Hopefully we can revisit autoconf soon.
2010-11-01 16:51:20 -07:00
Ryan Dahl 15594eaf87 Replace WAF with make/autoconf 2010-10-24 18:39:36 -07:00
Ryan Dahl 174a3a9a08 Upgrade libev to 4.00 2010-10-21 15:38:32 -07:00
Ryan Dahl ccf2a04ea2 Install ev.h and eio.h 2010-10-17 22:57:40 -07:00
Ryan Dahl f7a9eea0d4 Add config.h for cygwin for libev and libeio 2010-10-09 00:56:16 -07:00
Ryan Dahl 48d7a1edc1 libev, libeio config.h files don't depend on arch 2010-10-02 15:07:54 -07:00
David Siegel 3faa3b56f3 libev libeio: added freebsd-x86 config headers 2010-10-02 06:44:55 -07:00
Ryan Dahl 29cc78f824 Simpler libev and libeio config 2010-10-02 06:44:55 -07:00
Ryan Dahl 3a64c22cc1 Disable a few more libev features 2010-09-28 03:11:33 -07:00
Ryan Dahl 74614c1bf1 Change libev/wscript for waf 1.5.14 2010-03-08 17:45:57 -08:00
Ryan Dahl 933a37cd28 Upgrade libev to 3.9 2010-01-04 22:52:48 -08:00
Ryan Dahl 22d1d3dbf7 Fix kqueue check (broke it in last commit) 2009-12-18 15:45:53 +01:00
Ryan Dahl fa667f718c Fix check for epoll_ctl(). Was broken on Linux 2009-12-18 15:36:25 +01:00
Rasmus Andersson 752da03eb0 detect nanosleep on OS X and do not look for functions in libraries we know dows not exist 2009-12-18 15:36:11 +01:00
Rasmus Andersson 87077e03cc fix kqueue feature detection on Mac OS X 10.6 2009-12-18 15:14:33 +01:00
Ryan Dahl 55f9fdd6b5 Upgrade libev to latest CVS 2009-11-17 12:41:19 +01:00
Ryan Dahl c779647600 Link libev and libeio as a normal .o instead of as .a
Using WAF "staticlib" to compile libev tends to confuse it with a system
version. Thanks to mr.binary42 for helping debug.
2009-10-27 18:50:41 +01:00
Ryan Dahl 45ea62a0f6 Changes to compile on Andrew Miller's very old machine 2009-09-26 15:11:31 +02:00
Ryan 2b6d72431b First attempt at node.dlopen
Compiled first working 'hello world' module with this config
2009-08-27 16:08:40 +02:00
Ryan b41ea5289e Upgrade libev to 3.8 2009-08-13 15:07:37 +02:00
Ryan f4dfbe37a3 Upgrade libev to 3.7 2009-07-20 13:01:40 +02:00
Ryan e763efdadf Upgrade v8 to 1.2.10 and libev to 3.6 2009-06-29 10:55:05 +02:00
Ryan cc67d8efc7 Fix bug waf problem with HAVE_CLOCK_SYSCALL 2009-06-22 18:28:48 +02:00
Ryan a3627c06f8 Change to build on FreeBSD
The v8/SConstruct change has been give to the v8 people.
http://codereview.chromium.org/113897
2009-05-27 16:29:55 +02:00
Ryan 90fc8d3622 Update liboi. Use EV_MULTIPLICITY=0.
This might need to be changed in the future if ev is needed in thread pools
or extension libraries. However for now it makes sense to just use a single
loop.
2009-04-28 22:37:03 +02:00
Ryan 8e7bbf26e2 get 'make install' working 2009-04-23 19:26:56 +02:00
Ryan 29b528c980 fix the waf configure --debug options. seems to work now. 2009-04-23 17:29:31 +02:00
Ryan a4593e3ebd WAF: fix the debug variant.
problem is they both build by default. need a way to disable the debug variant.
2009-04-23 13:18:38 +02:00
Ryan 1a126ed11c use the WAF build system 2009-04-04 14:50:15 +02:00
Ryan c518373838 add dependencies: libeio, libev, v8 2009-04-03 13:43:03 +02:00