Commit Graph

89 Commits

Author SHA1 Message Date
Igor Zinkovsky
6c86f9e0a8 windows: get values of path and pathext env variables when they're not supplied 2011-08-01 13:40:48 -07:00
Ben Noordhuis
b7008965bc uv-unix: unlock pipe after use, carry over lock file from uv_pipe_bind() 2011-08-01 22:23:06 +02:00
Ben Noordhuis
d24403ac8e uv-unix: safely close pipe file descriptors 2011-08-01 18:06:20 +02:00
Ben Noordhuis
a3852a7d73 uv-unix: set stream->accepted_fd=-1 in uv_pipe_init()
stream->accepted_fd was zeroed in uv_pipe_init() and that made
uv__finish_close() close the stdin file descriptor. Not good.
2011-08-01 18:05:55 +02:00
Igor Zinkovsky
1d6117a89b windows: set mode for child pipe handle 2011-07-30 10:55:30 -07:00
Igor Zinkovsky
d272a2183d Windows: spawn child processes 2011-07-29 19:02:51 -07:00
Ryan Dahl
7108ca8853 uv_spawn requires stdio pipes to be initialized 2011-07-29 15:37:00 -07:00
Ben Noordhuis
eed6f395d1 pipe: uv_pipe_listen raises UV_EINVAL on unbound socket 2011-07-29 04:22:59 +02:00
Ben Noordhuis
8e8af8fd34 uv-unix: use lock file to detect stale UNIX sockets 2011-07-29 03:59:55 +02:00
Ben Noordhuis
3c057ff8e5 uv-unix: add simple lock file API for internal use 2011-07-29 03:59:55 +02:00
Ryan Dahl
cf5babef80 Fix getaddrinfo bug 2011-07-28 21:47:43 -04:00
Ryan Dahl
a0994ac8fb Fix solaris build 2011-07-28 23:41:39 +00:00
Tom Hughes
6203c932d4 Fix memleak in libeio. 2011-07-27 23:23:28 +02:00
Igor Zinkovsky
fc7bc2be70 fix mingw build; add stubs for child process API 2011-07-27 11:05:32 -07:00
Ben Noordhuis
a1adfe3e23 uv-unix: cast argument to uv__stream_open() to uv_stream_t* 2011-07-27 03:55:11 +02:00
Ryan Dahl
92bc7b4959 Start uv_spawn()
Unix only at the moment. Lacks test for stdio
2011-07-25 16:19:27 -04:00
Igor Zinkovsky
252da78830 uv_std_handle + uv_listen on stdin 2011-07-25 10:28:50 -07:00
Igor Zinkovsky
e7497227bd merge uv_tcp_listen and uv_pipe_listen into uv_listen 2011-07-22 16:57:09 -07:00
Ryan Dahl
84ebddad88 long lines 2011-07-22 03:35:12 -07:00
Bert Belder
2806b0386b Windows: do not initialize pipe handle in uv_pipe_accept 2011-07-22 12:08:27 +02:00
Ben Noordhuis
52487194cf uv-unix: fix 'comparison between signed and unsigned integer expressions' 2011-07-22 01:45:06 +02:00
Ben Noordhuis
272f164e6a uv-unix: uv_pipe_bind: raise UV_EACCESS on inaccessible socket
Fixes failing test pipe_bind_error_addrnotavail.
2011-07-21 19:48:42 +02:00
Igor Zinkovsky
186abb00bc windows: return UV_EACCESS for invalid pipe name 2011-07-21 10:39:08 -07:00
Ben Noordhuis
fb42f82df6 uv-unix: uv_pipe_bind: raise UV_EINVAL if pipe already bound
Fixes failing test pipe_bind_error_inval.
2011-07-21 18:18:34 +02:00
Ben Noordhuis
580a5b464f uv-unix: uv_pipe_listen: raise UV_ENOTCONN if pipe not bound
Fixes failing test pipe_listen_without_bind.
2011-07-21 18:18:34 +02:00
Ben Noordhuis
1028a9c6a7 uv-unix: handle EINTR properly
Fixes #113.
2011-07-21 15:22:59 +02:00
Bert Belder
5b532d5f60 Windows: do not hang if LOOP->refs become 0 in a prepare callback 2011-07-21 14:57:27 +02:00
Bert Belder
6e505766be Windows: follow libev loop semantics more closely 2011-07-21 04:25:01 +02:00
Igor Zinkovsky
f8bdddcda9 Allow pipe name to be in utf8 for uv_pipe_bind and uv_pipe_connect 2011-07-20 18:55:40 -07:00
Igor Zinkovsky
ee5236cf56 Windows: make uv_pipe_bind fail for the pipe name already in-use 2011-07-20 18:48:35 -07:00
Ben Noordhuis
c4611a4148 uv-unix: move stream->fd >= 0 asserts out of connection error path
on_connect callback must be invoked even if the connect() syscall
fails. stream->fd == -1 in that case.
2011-07-21 03:35:14 +02:00
Bert Belder
d9612fe0e7 More changes related to uv_close returning void 2011-07-21 03:27:43 +02:00
Ryan Dahl
b931c9313f uv_close returns void 2011-07-20 18:03:48 -07:00
Igor Zinkovsky
2765509430 Windows: Use PeekNamedPipe instead of non-blocking reads to peek at the pipe buffer 2011-07-21 02:25:09 +02:00
Ben Noordhuis
66f936bfd7 uv-unix: call uv__accept() instead of accept()
uv__accept() puts the socket in non-blocking close-on-exec mode,
accept() by itself does not.

Solves the case of the mysteriously hanging HTTP benchmarks.
2011-07-21 02:13:02 +02:00
Ben Noordhuis
332bbecd19 uv-unix: defer uv_pipe_connect callback to next tick 2011-07-20 23:06:44 +02:00
Ryan Dahl
1fda135ff2 understand EBADF 2011-07-20 11:05:53 -07:00
Ryan Dahl
eadfb14884 unix: uv_write shouldn't assert fd >= 0 2011-07-20 10:51:08 -07:00
Ben Noordhuis
ce5eb6d85a config-unix: drop --std=c89 on cygwin, hides CLOCK_MONOTONIC.
Fixes #112.
2011-07-20 17:58:27 +02:00
Ben Noordhuis
e6075842e8 uv-unix: in uv_pipe_init: zero the _whole_ uv_pipe_t struct. 2011-07-20 01:14:17 +02:00
Bert Belder
ca3cfbae74 Windows: use low-res event loop clock.
For much better performance. Closes #88.
2011-07-19 17:32:43 +02:00
Bert Belder
86f1ca90e5 Windows: implement uv_hrtime() 2011-07-19 15:01:12 +02:00
Bert Belder
cd0dcce98c Windows: use _strdup instead of strdup 2011-07-19 15:01:11 +02:00
Ben Noordhuis
7cc527997f uv-common: fix 'initialization discards qualifiers from pointer target type' 2011-07-19 13:51:31 +02:00
Ben Noordhuis
3207f8ae40 uv-unix: fix 'passing argument 1 of ‘uv__stream_open’ from incompatible pointer type' 2011-07-19 13:51:31 +02:00
Ben Noordhuis
c0d4669f87 uv-unix: fix 'implicit declaration of function ‘accept4’' 2011-07-19 13:51:31 +02:00
Ryan Dahl
d4563a197a Allow and test for lazy uv_tcp_listen 2011-07-19 02:40:54 -07:00
Bert Belder
3a91232f66 Split up uv-win.c 2011-07-19 03:47:30 +02:00
Ryan Dahl
07b49ce59a add uv_ip4_name and uv_ip6_name 2011-07-18 17:39:04 -07:00
Ben Noordhuis
4eff34da43 uv-unix: pipes API implementation
Based on UNIX sockets to avoid the vagaries of FIFOs
in asynchronous mode. Currently unlinks stale sockets
before binding and cleans them up again after shutdown.
2011-07-19 00:58:02 +02:00