Ben Noordhuis
04b356ab37
test: fix compiler warnings
2011-10-10 16:07:46 +02:00
Igor Zinkovsky
9f6024a6fa
windows: fixes crash in pipe.c
2011-10-07 15:05:01 -07:00
Igor Zinkovsky
0364809fb5
fix fs_utime & fs_futime tests on windows
2011-10-06 16:25:59 -07:00
Ryan Dahl
60c639fd57
Merge branch 'ipc2'
2011-10-06 10:18:13 -07:00
Igor Zinkovsky
81c4043c83
ipc on windows
2011-10-06 10:17:42 -07:00
Ryan Dahl
c920db9fd1
unix: handle passing kind of working
2011-10-06 10:17:42 -07:00
Ryan Dahl
bb6b629e6a
make test-ipc accept the pending tcp server
2011-10-06 10:17:18 -07:00
Ryan Dahl
dc0f17d3e3
Add server to ipc_helper
2011-10-06 10:17:18 -07:00
Ryan Dahl
6921d2fc07
Add argument to uv_pipe_init for IPC, unix impl
2011-10-06 10:17:07 -07:00
Ben Noordhuis
27262134cd
bench: add batched TCP writes benchmark
...
Times how long it takes to queue and write out 1,000,000 short strings.
2011-10-06 03:31:58 +02:00
Ben Noordhuis
c7870465aa
error reporting: return sensible messages for synthetic errors
2011-10-06 01:17:46 +02:00
Erick Tryzelaar
e3f2631127
unix: bad connect addresses should error with EINVAL
2011-10-04 16:46:39 -07:00
Ben Noordhuis
8e9a3384c9
unix: implement kqueue file watcher API
...
kqueue fds are not embeddable into other pollsets (select, poll, kqueue).
Hack the libev event loop to receive kqueue events with filter flags intact.
2011-10-04 23:28:36 +02:00
Fedor Indutny
a35591bbfc
os: implement loadavg (not working on cygwin/win)
2011-10-04 18:15:14 +02:00
Fedor Indutny
33cb8775bc
os: implement memory bindings
...
* us_get_free_memory
* us_get_total_memory
2011-10-04 18:10:35 +02:00
Ben Noordhuis
6221904013
sunos: fix gyp build
2011-10-02 00:14:44 +00:00
Ryan Dahl
153d3c7c57
unix: allow tty raw mode to be turned off
2011-09-30 11:21:51 -07:00
Igor Zinkovsky
c9ae7a6f95
windows: don't strip the trailing slash from filename if it follows a device name
2011-09-28 12:59:39 -07:00
Igor Zinkovsky
4fb120f649
windows: fix error reporting for uv_fs_ functions
2011-09-28 12:46:37 -07:00
Bert Belder
1d3b880e2f
Add uv_tty_t size to benchmark-sizes
2011-09-28 03:43:28 +02:00
Ryan Dahl
2ebb2272c3
Add tcp reference count tests
2011-09-26 22:51:08 -07:00
Ryan Dahl
3e5aa06c49
Add two timer ref count tests
2011-09-26 22:01:21 -07:00
Igor Zinkovsky
f6a365ed91
fix tcp_write_error for windows
2011-09-26 14:39:02 -07:00
Ryan Dahl
03d0c57ea2
Remove uv_is_tty. Use uv_guess_handle instead.
2011-09-23 10:01:45 -07:00
Erick Tryzelaar
7e8645d101
unix,win: Make uv_freeaddrinfo to clean up addrinfo
...
Fixes #196
2011-09-23 09:31:01 -07:00
Ryan Dahl
03652596cf
unix: add uv_guess_handle and uv_tty_get_winsize
2011-09-22 19:35:46 -07:00
Ben Noordhuis
2a1c32a60c
linux: implement file watcher API
2011-09-21 13:23:49 -07:00
Igor Zinkovsky
1e0757ffda
windows: file watcher
2011-09-21 13:13:34 -07:00
Ben Noordhuis
2dae0c9e49
test: remove futimes sub-second precision checks, unreliable on freebsd
2011-08-17 07:02:00 +02:00
Ryan Dahl
c1374ba587
Add uv_is_tty()
2011-09-20 11:48:47 -07:00
Erick Tryzelaar
70e1032094
unix: Fix uv_getaddrinfo from deleting invalid data
...
If the uv_getaddrinfo_t handle is owned by its
data pointer, deleting the data in the callback
could cause uv_getaddrinfo_done to call freeaddrinfo
on an invalid pointer.
2011-09-19 17:11:34 +02:00
Ben Noordhuis
4487531b06
test: check that write_queue_size updates after write error
2011-09-16 16:17:23 -07:00
Ryan Dahl
f00a5e6503
ignore SIGPIPE in tests
2011-09-16 15:36:35 -07:00
Erick Tryzelaar
533418d4da
test and bench: assert return values of *_init functions in tests
2011-09-15 22:33:48 +02:00
Erick Tryzelaar
970018156f
test: fix compiling with gcc-4.5
2011-09-15 22:33:22 +02:00
Igor Zinkovsky
2931bdcf54
windows: strip '\??\' from readlink path buffer.
2011-09-14 12:58:18 -07:00
Igor Zinkovsky
65c8a727a3
uv_fs_ functions to return result in sync mode
2011-09-14 11:47:49 -07:00
Ben Noordhuis
3c96410902
unix: bring back uv__stream_destroy()
...
This is the revised version of reverted commit 431195c .
2011-09-14 04:48:56 +02:00
Bert Belder
0dc564a2aa
Remove uv_init calls from tests and benchmarks
2011-09-12 11:32:41 -07:00
Erick Tryzelaar
efa1b54076
Subclass uv_getaddrinfo_t from uv_req_t.
...
This patch also fixes #155 . Since we no longer
memset clear the uv_getaddrinfo_t, the user can
now set the `uv_getaddrinfo_t->data` field without
problems.
2011-09-10 01:46:26 -07:00
Ben Noordhuis
ca5346f9ce
unix: revert 98b9f58 and 431195c for now, corrupts memory
2011-09-09 23:40:10 +02:00
Igor Zinkovsky
cfa1423f96
fix fs_file_noent on windows
2011-09-08 18:23:19 -07:00
Bert Belder
2d1c672e2d
More MinGW fixes
2011-09-08 23:49:46 +02:00
Erick Tryzelaar
1a43429774
Fix test-fs.c for darwin.
2011-09-08 14:22:08 -07:00
Erick Tryzelaar
f4e2d5559f
Fix test-get-currentexe on darwin.
...
Darwin uses _NSGetExecutablePath to determine
the path of an executable, but that can return
an absolute path. This patch tweaks the executable
path to strip off a potential "./" prefix from
argv[0], which fixes the test.
2011-09-08 14:20:06 -07:00
Ben Noordhuis
98b9f582f4
test: make sure that write callbacks run when handle is closed
2011-09-08 19:13:39 +02:00
Ben Noordhuis
90ea007f61
test: fix compiler warnings for test-spawn.c
2011-09-08 00:15:47 +02:00
Ben Noordhuis
5641503ae7
test: fix compiler warnings for test-fs.c
...
Include <unistd.h> on Unices, fixes warnings about unlink() not being declared.
2011-09-08 00:15:07 +02:00
Ben Noordhuis
4d7cfe4313
test: remove stale prototype declaration
2011-09-08 00:00:18 +02:00
Ben Noordhuis
e8ab5cbe70
test: fix utime and futime tests on windows
2011-09-06 03:48:09 +02:00
Ben Noordhuis
79d9f81881
unix: implement uv_fs_futime, add tests for uv_fs_utime and uv_fs_futime
2011-09-06 02:52:52 +02:00
Ben Noordhuis
b7d88070d8
fs: add UV_ENOENT error code, add test
2011-09-06 00:17:59 +02:00
Igor Zinkovsky
a8017fd8a2
windows: update uv_fs_* functions to work with req.path
2011-09-04 23:58:31 -07:00
Ryan Dahl
a18860aec6
Add uv_fs_t.path on unix and tests
...
Windows implementation missing https://github.com/joyent/libuv/issues/177
2011-09-04 18:05:11 -07:00
Ryan Dahl
7ccc7470e0
Add test for uv_fs_readdir sync
2011-09-04 16:54:27 -07:00
Ryan Dahl
142a70292b
unix: fix fs_chmod
2011-09-04 16:09:45 -07:00
Ben Noordhuis
826db45343
test: fix uv_fs_readdir test
...
Don't make assumptions about the order in which the
directory entries are returned by the file system.
2011-09-05 00:57:23 +02:00
Peter Bright
7db243dc6f
Bring inline with node common.gypi.
...
Win32 readlink()
2011-09-04 13:24:45 -07:00
Igor Zinkovsky
060026ced3
windows: uv_fs_link + uv_fs_symlink
2011-09-04 13:24:35 -07:00
Bert Belder
12b01e95f9
Specialize uv_xxx_getsockname, add uv_tcp_getpeername
2011-09-04 04:49:13 +02:00
Igor Zinkovsky
cf5ed86a79
windows: implement missing fs functions
2011-09-03 12:23:27 -07:00
Ryan Dahl
9f932f92cf
add test fs_chmod, implement uv_fs_fchmod and uv_fs_chmod on unix
2011-09-01 15:36:01 -07:00
Ryan Dahl
2e6035895c
Add test for uv_fs_fstat, implement on unix.
2011-09-01 14:15:06 -07:00
Igor Zinkovsky
22197ebf3f
windows: include _stat struct into uv_fs_t
2011-09-01 11:54:43 -07:00
Ryan Dahl
836cc204b6
unix: Fix test-gethostbyname
2011-08-31 15:37:16 -07:00
Bert Belder
b44ecf9929
multiplicity: update benchmarks
2011-08-31 05:18:48 +02:00
Bert Belder
8e3a8602ad
update tests for multiplicity
2011-08-31 04:19:26 +02:00
Bert Belder
3aec77f9d4
bring back uv_init
2011-08-31 04:19:07 +02:00
Ryan Dahl
56dcaf9b06
unix: multiplicity
2011-08-31 04:18:55 +02:00
Ryan Dahl
a6ed1757ab
unix: implement uv_fs_lstat
2011-08-30 01:32:53 -07:00
Ryan Dahl
d20233c7a8
Fix long lines
2011-08-30 00:54:59 -07:00
Ryan Dahl
894c005c42
unix: fix fs_async_sendfile
2011-08-30 00:52:43 -07:00
Ryan Dahl
0e81406bfb
unix fs_async_dir works
2011-08-29 22:08:51 -07:00
Ryan Dahl
cf08c168ea
Use Windows compatibile flags
2011-08-29 20:50:12 -07:00
Ryan Dahl
5d524fff1a
unix passes test fs_file_async
2011-08-29 20:41:45 -07:00
Ryan Dahl
7cad73aa47
Fix build for UNIX
2011-08-26 11:26:24 -07:00
Igor Zinkovsky
25175c7071
uv_fs & uv_work APIs
2011-08-26 11:00:53 -07:00
Ben Noordhuis
738e2da0c1
test: add udp getsockname test
2011-08-25 02:55:49 +02:00
Bert Belder
36c9b791d4
Fix bugs in test-udp-send-and-recv and benchmark-udp-packet-storm
2011-08-24 05:24:07 +02:00
Ben Noordhuis
36ce74f2ca
Add UDP support to libuv.
2011-08-24 04:55:01 +02:00
Ben Noordhuis
52024061e4
Make uv_getsockname() operate on uv_handle_t handles.
2011-08-24 04:17:36 +02:00
Bert Belder
cc0b0e6238
Remove trailing whitespace
2011-08-21 21:46:05 +02:00
Ryan Dahl
123119342f
pound: only display connect errors on DEBUG
2011-08-18 15:31:54 -07:00
Igor Zinkovsky
f6c25a17ea
Fix pipe-pound and clean-up
2011-08-18 15:30:34 -07:00
Ryan Dahl
ac1ce29ad0
Improve pound benchmark by reconnecting in close_cb
2011-08-18 15:30:34 -07:00
Ryan Dahl
e5a938f1f4
Add uv_buf_init() constructor
2011-08-17 17:43:19 -07:00
Jeroen Janssen
507c4ccea6
fixes for unsigned/signed comparison
2011-08-17 13:58:55 +02:00
Igor Zinkovsky
23e9ecb667
fix memory leak in echo server
2011-08-11 18:19:59 -07:00
Bert Belder
2d40e35b7e
Style
2011-08-12 02:43:59 +02:00
Ben Noordhuis
d358738954
bench: #undef NANOSEC, defined in time.h on solaris
2011-08-11 23:43:52 +00: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
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
Ben Noordhuis
65ed582cae
bench: run pound benchmark for at least 5 seconds, track connect failures
2011-08-09 03:16:29 +02: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
Ben Noordhuis
7dda111306
test, bench: add --list option to runners, prints available tests
2011-08-06 23:57:28 +02:00
Igor Zinkovsky
a706a66d81
accept benchmark
2011-08-05 18:20:06 -07:00
Peter Bright
d84b249616
Support for unescaped arguments, suitable for use with cmd /c.
...
Robust argument escaping that hopefully matches Windows' algorithm for unescaping.
2011-08-04 18:22:47 -07:00
Igor Zinkovsky
6d940a3afc
windows: remove dependency on rpcrt4 and ole32 libs. fixes https://github.com/joyent/libuv/issues/118
2011-08-01 20:10:55 -07:00
Igor Zinkovsky
c35548a69e
fix spawn_and_kill test on windows
2011-08-01 16:50:59 -07:00