Commit Graph

205 Commits

Author SHA1 Message Date
Ryan Dahl
bb6b629e6a make test-ipc accept the pending tcp server 2011-10-06 10:17:18 -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
Igor Zinkovsky
a1f98d55b1 fix c-ares on windows 2011-09-27 16:09:57 -07:00
Ben Noordhuis
2e4eca3b5e c-ares: upgrade to 1.7.5 2011-09-27 16:04:25 -07:00
Ben Noordhuis
99748250f2 unix: link to libkvm on freebsd
Fixes 'undefined reference' linker errors to kvm_open(), kvm_close(), etc.
2011-09-28 00:57:20 +02:00
Fedor Indutny
e7758e126f unix: remove eio_set_max_poll_reqs
* added test
2012-01-16 14:49:13 +01:00
Ryan Dahl
4ad33e9748 Revert "Add uv_pipe_pair for communication between threads"
Not needed. We took a different approach for isolates.

This reverts commit 5cc6090fdf.
2012-01-09 11:22:46 -08:00
Ryan Dahl
5cc6090fdf Add uv_pipe_pair for communication between threads
This is only the Unix implementation and test.
2011-12-29 22:41:08 -08:00
Igor Zinkovsky
3d189de699 platform api 2011-12-14 17:50:36 -08:00
Ben Noordhuis
4c6008f488 Merge branch 'v0.6'
Conflicts:
	test/test-list.h
2011-12-12 18:04:17 +01:00
Ben Noordhuis
f5c2a4a1ae Merge branch 'v0.6'
Conflicts:
	src/unix/core.c
	src/win/winapi.h
2011-12-02 18:15:04 +01:00
Ben Noordhuis
b52b8c7128 util: add uv_strlcpy() and uv_strlcat() functions 2011-11-23 17:29:02 +01:00
Ben Noordhuis
0834e73621 Merge branch 'v0.6' 2011-11-22 00:06:58 +01:00
Ben Noordhuis
45180fea27 bench: add thread creation benchmark 2011-11-21 21:27:36 +01:00
Ben Noordhuis
8e4ed88bbe Wrap platform thread APIs. 2011-11-21 21:04:16 +01:00
Ben Noordhuis
1fc1f28093 Wrap platform mutex and rwlock APIs.
Read/write locks are emulated with critical sections on Windows XP and Vista
because those platforms don't have a (complete) native read/write lock API.
2011-11-18 12:42:08 +01:00
Bert Belder
8f563e2963 Revert c-ares upgrade and includes fix
It broke the windows build.
This reverts commit 083c97e28b and commit b288afdf14.
2011-09-27 12:39:55 +02:00
Ben Noordhuis
083c97e28b c-ares: upgrade to 1.7.5 2011-09-26 22:41:17 +02:00
Igor Zinkovsky
1e0757ffda windows: file watcher 2011-09-21 13:13:34 -07:00
Ben Noordhuis
78f4acacf1 build: fix freebsd gyp build 2011-08-17 06:40:17 +02:00
Ben Noordhuis
9f8bc7b4b8 build: add test-tty to gyp file list, unbreaks build 2011-09-21 00:26:29 +02:00
Ryan Dahl
2f18cf5ecf Fix gyp build 2011-09-18 18:34:40 -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
Ryan Dahl
4484d61fe1 Add interfaces for uv_pipe_open, uv_tty_init, uv_tty_set_mode
Nothing works - no tests. This is just to coordinate efforts between Bert
and I.
2011-09-12 14:32:14 -07:00
Ben Noordhuis
9bd8bd7945 gyp: add sunos config section 2011-09-12 23:20:45 +02:00
Bert Belder
f790b689a7 Remove uv_init from uv.h and windows backend 2011-09-12 11:32:41 -07:00
Bert Belder
c4317f639a Update uv.gyp after 98b9f58 got reverted 2011-09-09 23:44:03 +02:00
Erick Tryzelaar
fe6157bdd4 Stop "./gyp_uv --check" from complaining. 2011-09-08 14:21:49 -07:00
Igor Zinkovsky
70bc6c0ca8 add test-tcp-close.c to uv.gyp 2011-09-08 13:23:49 -07:00
Ryan Dahl
6fd340b8ca unix: split out stream into its own file 2011-08-31 13:41:22 -07:00
Ryan Dahl
38ce213b6a unix: split out pipe 2011-08-31 13:29:17 -07:00
Ryan Dahl
510407c03d unix: split out tcp module 2011-08-31 13:11:38 -07:00
Ryan Dahl
e553f96f94 unix: split out uv_spawn into src/unix/process.c 2011-08-31 11:50:08 -07:00
Ryan Dahl
490c83dd35 move src/uv-unix.c to src/unix/core.c 2011-08-31 11:26:43 -07:00
Ryan Dahl
6144c93bbc unix: split out error code into separate file 2011-08-31 11:23:29 -07:00
Ryan Dahl
e97958ac3b unix: Split out c-ares integration into separate file 2011-08-31 11:23:29 -07:00
Ryan Dahl
58461d5ae7 split out unix's udp source 2011-08-31 11:23:29 -07:00
Ryan Dahl
b47c474cfd Move private headers into include/uv-private 2011-08-31 00:43:55 -07:00
Ryan Dahl
1408ac4c4f Move src/ev to src/unix/ev 2011-08-31 00:33:14 -07:00
Ryan Dahl
5fd68a016a Move unix platform files into src/unix 2011-08-31 00:29:47 -07:00
Ryan Dahl
231298a5e8 move eio stuff into src/unix 2011-08-31 00:24:07 -07:00
Ryan Dahl
df0b483ce3 Fix gyp build 2011-08-29 15:03:42 -07:00
Ryan Dahl
3be275bad7 Begin implementation of UNIX uv_fs_ functions
Adding this incomplete work now to ease rebase troubles later as it moves
the functions to src/unix/fs.c and introduces src/unix/internal.h.
2011-08-29 14:36:45 -07:00
Igor Zinkovsky
25175c7071 uv_fs & uv_work APIs 2011-08-26 11:00:53 -07:00
Bert Belder
5c9d749a57 win: udp support 2011-08-24 04:55:08 +02:00
Bert Belder
d1a63c4003 win: move winsock intialization out of tcp.c 2011-08-21 21:46:40 +02:00
Bert Belder
48a8f1959a win: merge kernel32.h and ntdll.h; declare pointers in winapi.h 2011-08-21 21:46:20 +02:00
Igor Zinkovsky
fc26321890 use GetQueuedCompletionStatusEx if the OS supports it 2011-08-15 12:13:47 -07:00
Ryan Dahl
e89f54ece4 Add forgotten gyp files 2011-08-13 22:56:11 -07:00