Ryan Dahl
b44f9d75ea
unix: cloexec stdio streams
2011-08-11 16:35:56 -07:00
Ryan Dahl
f7b4e65090
unix: introduce SPAWN_WAIT_EXEC to turn off poll feature
2011-08-11 15:52:22 -07:00
Ryan Dahl
11aa1ea096
Remove unnecessary casts
2011-08-11 11:27:35 -07:00
Bert Belder
ca633920f5
Windows: fix pipe shutdown
2011-08-11 04:18:29 +02:00
Bert Belder
a89410456c
Whitespace
2011-08-11 04:18:28 +02:00
Ben Noordhuis
e8497aee5a
Add error code UV_EPIPE.
2011-08-11 02:45:27 +02:00
Ben Noordhuis
b328e4cb05
uv-unix: fd 0 is valid file descriptor
...
uv__bind() and uv_tcp_listen() created a new socket
if tcp->fd <= 0 but 0 is a valid file descriptor.
The second bug was that the newly created socket
wasn't actually assigned to tcp->fd.
Fixes failing node.js test:
test/simple/test-regress-GH-746.js
2011-08-11 01:36:20 +02:00
Ryan Dahl
ee2027dd13
fix preprocessor again
2011-08-10 16:16:47 -07:00
Ben Noordhuis
b6b97f305e
uv-unix: guard against self-close by connection_cb
...
connection_cb may close the server socket inside the accept loop, handle it.
Fixes failing node.js tests:
test/simple/test-net-connect-buffer.js
test/simple/test-net-create-connection.js
2011-08-11 00:33:09 +02:00
Ben Noordhuis
afb1859600
uv-unix: remove dead code
2011-08-11 00:33:09 +02:00
Ryan Dahl
06623d15f2
More preprocessor fixes...
2011-08-10 15:01:38 -07:00
Ryan Dahl
dac30a15f2
More preprocessor fixes
2011-08-10 14:56:16 -07:00
Ryan Dahl
5dc8037fcf
Fix mingw build by using preprocessor correctly.
2011-08-10 14:40:52 -07:00
Ryan Dahl
db190c7b4f
unix: uv_pipe_connect should call uv__stream_open
2011-08-10 14:22:10 -07:00
Ryan Dahl
b8fe56d837
Remove unnecessary casts
2011-08-10 14:22:10 -07:00
Bert Belder
9a127af7c0
Add header files to gyp script
...
This makes generated project files more convenient to work with.
2011-08-10 22:58:09 +02:00
Bert Belder
71396f6a8f
Polish create-msvs-files script
2011-08-10 22:58:06 +02:00
Bert Belder
d3cc9a39ed
Move gyp files to root
2011-08-10 22:58:00 +02:00
Robert Mustacchi
4b1b8faea8
Clean up SunOS build
2011-08-09 23:51:50 +02:00
Peter Bright
54a6c6fee0
Ignore VC++ files.
2011-08-09 14:37:02 -07:00
Peter Bright
3409c9b383
Include important Windows environmental variables even when a blank/custom environment is specified.
2011-08-09 14:29:51 -07:00
Ben Noordhuis
4abd1e0ccc
uv-unix: close file descriptors immediately in uv_close()
...
Don't defer closing of socket and pipe file descriptors to the
next iteration of the event loop. It breaks node.js unit tests
that assume the call to `server.close()` immediately frees up
the bound to address.
2011-08-09 23:14:38 +02:00
Ben Noordhuis
0c815cfe89
eio: define HAVE_UTIMES 1 on cygwin, fixes build
2011-08-09 22:58:21 +02:00
Ryan Dahl
0266c0ec57
Change for MinGW on Win 2k3
2011-08-09 12:24:01 -07:00
Ryan Dahl
e5f513cf58
Remove desired-api.md
2011-08-09 12:23:41 -07:00
Ben Noordhuis
3f8bbb8c0f
bench: create separate arrays for TCP and pipe streams
...
Size and alignment of tcp_conn_rec and pipe_conn_rec may differ
so it's not safe to reuse a single array of conn_rec elements.
2011-08-09 20:02:59 +02:00
Ryan Dahl
02ca3080a6
EIO_CONFIG_H not used on MinGW
2011-08-09 10:30:25 -07:00
Bert Belder
831b15a47c
Windows: fix WaitNamedPipe thread bug
2011-08-09 17:35:18 +02:00
Ben Noordhuis
65ed582cae
bench: run pound benchmark for at least 5 seconds, track connect failures
2011-08-09 03:16:29 +02:00
Peter Bright
648baa3826
Fix missing prototype warnings.
2011-08-08 18:11:01 -07:00
Ben Noordhuis
cee3cc6940
bench: use high-res timer in pound benchmark
2011-08-09 01:51:25 +02:00
Igor Zinkovsky
f9eda88fe6
fix for pound benchmark
2011-08-08 15:09:14 -07:00
Ryan Dahl
75c109055d
Bring back standalone makefiles for a better transition
2011-08-08 13:42:01 -07:00
Ben Noordhuis
58dd01ab58
build: add debug target to Makefile
2011-08-08 16:07:27 +02:00
Ryan Dahl
1493dcf359
Peter Bright's MSVS fixes
2011-08-06 22:36:59 -07:00
Ryan Dahl
42c76f720f
Add pthread-win32 temporarily
...
Until Node does not rely on libeio interfaces.
2011-08-06 19:05:13 -07:00
Ben Noordhuis
7dda111306
test, bench: add --list option to runners, prints available tests
2011-08-06 23:57:28 +02:00
Andrea Lattuada
6c3205557b
Remove uv_flag_* functions in favor of manual bit twiddling
...
Fixes #121
Fixes #129
2011-08-06 12:12:25 -07:00
Jeroen Janssen
d9b0534ae0
gyp: enable debug symbols with MSVC
...
Fixes #130 .
2011-08-06 10:45:58 -07:00
Ben Noordhuis
62d1c5751e
uv-unix: fix warning: passing argument 1 of ‘eio_custom’ from incompatible pointer type
2011-08-06 17:01:09 +02:00
Ben Noordhuis
351a332e25
build: don't assume python lives at /usr/bin/python
2011-08-06 16:59:25 +02:00
Ben Noordhuis
8abce89e57
build: fix libeio build on linux
...
Define HAVE_UTIMES so libeio includes <utime.h>
2011-08-06 14:43:50 +02:00
Ryan Dahl
48877edfb8
Work around GYP bug - use absolute paths
2011-08-06 03:36:36 -07:00
Ryan Dahl
60e973172e
Add pound benchmark.
2011-08-06 03:34:17 -07:00
Ryan Dahl
a30a7336f0
Build with gyp
2011-08-06 02:17:56 -07:00
Ryan Dahl
52e1a9e997
Upgrade eio (it has better msvs support)
2011-08-06 00:29:39 -07:00
Igor Zinkovsky
a706a66d81
accept benchmark
2011-08-05 18:20:06 -07:00
Igor Zinkovsky
cc143317b1
windows: fix req refcount for uv_pipe_connect
2011-08-05 17:47:20 -07:00
Ryan Dahl
4ca89308b6
Remove assert that is broken on darwin
2011-08-05 17:47:18 -07:00
Tom Hughes
76338f794e
ares_parse_a_reply: fix memleak
2011-08-06 00:18:59 +02:00