Commit Graph

279 Commits

Author SHA1 Message Date
Ryan Dahl
acbd168069 Add test to assert behavior of uv_tcp_t after shutdown
Handles should *never* call the close callback without the user having first
issued a uv_close() command.

This test is broken on windows. See #52.
2011-06-03 02:54:50 -07:00
Ryan Dahl
903c07bf98 API Change: uv_close only called by user - never automatically
Add test that failing on_connect callback does not trigger on_close.
2011-06-03 02:49:55 -07:00
Ryan Dahl
7770b1a1f6 API change: alloc_cb moved to uv_read_start()
Fixes #47.
2011-06-03 02:30:00 -07:00
Ryan Dahl
6b07791598 API Change: Pass sockaddr_in by value instead of reference 2011-06-03 02:19:35 -07:00
Ryan Dahl
11a4ad50c8 Separate out uv_handle_t into different types
Fixes #4
2011-06-03 11:03:52 +02:00
Vanilla Hsu
fb5262abdc Support FreeBSD 2011-06-03 06:46:16 +02:00
Ryan Dahl
ee712eba36 more desired api 2011-05-28 18:52:33 -07:00
Ryan Dahl
5be0fe2168 more desired api 2011-05-28 16:06:29 -07:00
Ryan Dahl
55de5e3242 improve design doc 2011-05-28 15:40:10 -07:00
Ryan Dahl
18f54bef31 Add doc on desired-api 2011-05-28 01:47:47 -07:00
Bert Belder
be1bfe6c4c Revert AUTHORS update
This reverts commit 9467a92390.
2011-05-27 22:04:14 +02:00
Bert Belder
d5b3ae0f58 usleep -> uv_sleep 2011-05-27 19:41:34 +02:00
Ryan Dahl
982a620f1c Echo server gracefully dies on 'Q'
Allows for better clean up during tests.
2011-05-27 02:11:43 -07:00
Ryan Dahl
e28c0bb60b unix: Use fork instead of vfork in runner. 2011-05-27 01:47:42 -07:00
Ryan Dahl
7e34b7bdfc runner: insert little delay after starting helpers 2011-05-27 01:47:42 -07:00
Ryan Dahl
f0ebf0c7fc Split pump bench into two processes.
And add a pump test with 1 client.
2011-05-27 01:32:48 -07:00
Ryan Dahl
e3923b76b4 UNIX: Bad was_active check in uv_check_start() 2011-05-26 22:50:38 -07:00
Bert Belder
143a09a33d Move variable declarations to top 2011-05-26 02:09:18 +02:00
Bert Belder
9467a92390 Add Igor to AUTHORS 2011-05-24 14:34:55 -07:00
Igor Zinkovsky
802d78e6b1 Adds handling of unicode paths to uv_get_exepath on windows 2011-05-24 12:18:40 -07:00
Igor Zinkovsky
9fc8a7f167 Adds uv_get_exepath API
Only works on Linux, Mac, Windows currently.
2011-05-24 08:40:27 -07:00
Bert Belder
d91b5012bd Test the right thing 2011-05-23 23:56:57 +02:00
Bert Belder
54c95f749b Unix: unbreak uv_is_active
We need a test for it.
2011-05-23 23:53:57 +02:00
Ryan Dahl
40f0ad6d36 unix: fix ref count tests 2011-05-22 12:56:54 -07:00
Ryan Dahl
1352c72e35 Add reference count tests
Broken on UNIX.
2011-05-22 12:56:49 -07:00
Ryan Dahl
c8603a7462 Include stddef.h for NULL 2011-05-19 15:03:26 -07:00
Bert Belder
0177751ff5 Add uv-common.c, move uv_err_name() there 2011-05-19 23:05:25 +02:00
Ryan Dahl
9c2dd6bea9 timer tests to work on unix 2011-05-18 22:23:17 -07:00
Ryan Dahl
103099e175 pump: connect to 127.0.0.1 instead of 0.0.0.0 2011-05-18 21:18:52 -07:00
Bert Belder
ccc2784153 Avoid printf type warning in test-timer-again 2011-05-19 02:28:50 +02:00
Bert Belder
0fa733e0ea Forgot one assert in test-timer-again 2011-05-19 02:02:39 +02:00
Bert Belder
78c2930e25 Test for uv_timer_again ,~get_repeat, ~set_repeat 2011-05-19 01:58:07 +02:00
Bert Belder
fd8ee879e2 Windows: make uv_is_active work for timers 2011-05-19 01:55:58 +02:00
Ryan Dahl
3d0332ed6e unix: uv_timer_get, uv_set_repeat
Fixes #43
2011-05-18 13:24:38 -07:00
Bert Belder
9679e333c6 uv_timer api extension 2011-05-18 21:56:12 +02:00
Ryan Dahl
bfb4e5e486 Override default backend for OSX 2011-05-17 14:56:24 -07:00
Ryan Dahl
02b43d4ce8 add uv_err_tostr 2011-05-16 22:28:42 -07:00
Bert Belder
e13a02263c uv_timer_again for windows 2011-05-17 03:55:02 +02:00
Ryan Dahl
452681fbe9 fix port conflict 2011-05-16 17:55:11 -07:00
Bert Belder
c41b7143c7 Fix after merge 2011-05-17 02:29:22 +02:00
Bert Belder
c28fe6e170 Implement uv_timer for windows 2011-05-17 02:29:21 +02:00
Bert Belder
a730165312 UV_TIMER is a handle type now, not a req type 2011-05-17 02:29:21 +02:00
Bert Belder
1676e4abcc Please, declare vars at the top 2011-05-17 02:29:20 +02:00
Ryan Dahl
2aabd44d77 unix: fix ref count for timer - unbreaks loop_handles test 2011-05-16 17:28:43 -07:00
Ryan Dahl
816289ae8f unix: implement timers
currently loop_handles is broken.
2011-05-16 17:08:43 -07:00
Ryan Dahl
b969809d20 unix: stub out timer methods 2011-05-16 16:26:58 -07:00
Bert Belder
810651e04c Update tests & benchmarks to use the new timer api 2011-05-17 01:17:48 +02:00
Bert Belder
abd2d1cae4 New timer api 2011-05-16 23:49:17 +02:00
Bert Belder
899ebf2371 uv_is_active for *nix 2011-05-16 21:46:07 +02:00
Bert Belder
2aefc18d3a uv_is_active api and windows implementation 2011-05-16 21:40:48 +02:00