History log of /libuv/src/unix/stream.c (Results 201 – 225 of 249)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 5fd2c406 23-May-2012 Ben Noordhuis

unix: fix up asserts in core.c and stream.c

# 5b9c4512 23-May-2012 Ben Noordhuis

unix: fold uv__io_cb into ev_io struct

Makes the uv__io code a little more obscure but has the advantage that
sizeof(uv__io_t) == sizeof(ev_io), i.e. the sizes of embedding handles
d

unix: fold uv__io_cb into ev_io struct

Makes the uv__io code a little more obscure but has the advantage that
sizeof(uv__io_t) == sizeof(ev_io), i.e. the sizes of embedding handles
don't change.

show more ...

# 3bc97070 23-May-2012 Ben Noordhuis

unix: replace ev_io with uv__io_t

Replace ev_io usage with wrapper constructs.

This is preliminary work for the transition to a libev-less linux backend.

# e82d4645 17-May-2012 Ben Noordhuis

unix: fix close-before-connect bug

Closing the TCP socket before the SYN/ACK handshake completed hung the event
loop, the connect req didn't get unregistered.

# e10a87ad 17-May-2012 Ben Noordhuis

unix: streamline shutdown req cleanup logic

# 9efa8b35 17-May-2012 Ben Noordhuis

unix, windows: rework reference counting scheme

This commit changes how the event loop determines if it needs to stay alive.

Previously, an internal counter was increased whenever a

unix, windows: rework reference counting scheme

This commit changes how the event loop determines if it needs to stay alive.

Previously, an internal counter was increased whenever a handle got created
and decreased again when the handle was closed.

While conceptually simple, it turned out hard to work with: you often want
to keep the event loop alive only if the handle is actually doing something.
Stopped or inactive handles were a frequent source of hanging event loops.

That's why this commit changes the reference counting scheme to a model where
a handle only references the event loop when it's active. 'Active' means
different things for different handle types, e.g.:

* timers: ticking
* sockets: reading, writing or listening
* processes: always active (for now, subject to change)
* idle, check, prepare: only active when started

This commit also changes how the uv_ref() and uv_unref() functions work: they
now operate on the level of individual handles, not the whole event loop.

The Windows implementation was done by Bert Belder.

show more ...

Revision tags: node-v0.6.18
# e3875548 02-May-2012 Bert Belder

Unix: namespace stream handle flags

Revision tags: node-v0.6.16
# a55a3362 21-Apr-2012 Ben Noordhuis

unix: handle EWOULDBLOCK in uv__read()

# 4fd62648 21-Apr-2012 Ben Noordhuis

unix: handle EWOULDBLOCK in uv__write()

# a8b52351 21-Apr-2012 Ben Noordhuis

unix: handle EWOULDBLOCK in uv__server_io()

# ab3b307d 18-Apr-2012 Ben Noordhuis

unix: clean up uv__req_init()

# 132fe600 18-Apr-2012 Ben Noordhuis

const-ify stream argument to uv_is_readable() and uv_is_writable()

Revision tags: node-v0.6.17
# a41016e9 12-Apr-2012 Ben Noordhuis

unix: run pending shutdown cb when stream is closed

Revision tags: node-v0.7.8, node-v0.6.15
# 5a8446c3 04-Apr-2012 Ben Noordhuis

unix: move handle specific close logic out of core.c

Revision tags: node-v0.6.14
# c9c9d805 21-Mar-2012 Ben Noordhuis

unix: ignore ECONNABORTED errors from accept()

ECONNABORTED means that the connection was torn down by the peer before the
TCP handshake completed. Ignore it, there's nothing we can do a

unix: ignore ECONNABORTED errors from accept()

ECONNABORTED means that the connection was torn down by the peer before the
TCP handshake completed. Ignore it, there's nothing we can do and it simplifies
error handling for libuv users.

show more ...

# 4ff0898c 19-Mar-2012 Ben Noordhuis

unix: replace uv__close() with close()

uv__close() was deprecated a while ago. It's been an alias for close() ever
since. Remove it.

Revision tags: node-v0.6.13, node-v0.7.6
# 71eea07a 08-Mar-2012 Ben Noordhuis

unix: add support for receiving UNIX sockets

Until now, all received file descriptors were reported as being UV_TCP streams:
AF_INET/AF_INET6 sockets of type SOCK_STREAM.

This c

unix: add support for receiving UNIX sockets

Until now, all received file descriptors were reported as being UV_TCP streams:
AF_INET/AF_INET6 sockets of type SOCK_STREAM.

This commit adds support for AF_UNIX/AF_FILE sockets (UV_NAMED_PIPE in libuv
nomenclature).

Support for UV_UDP handles (AF_INET/AF_INET6 sockets of type SOCK_DGRAM) still
needs to be implemented.

show more ...

Revision tags: node-v0.6.12, node-v0.6.11, node-v0.7.4
# f9be43a5 08-Feb-2012 Igor Zinkovsky

support half-duplex pipes

# 2f182f44 03-Feb-2012 Ben Noordhuis

unix: map ECONNABORTED

Revision tags: node-v0.6.10, node-v0.7.2, node-v0.6.9, node-v0.7.1, node-v0.7.0, node-v0.6.8, node-v0.6.7
# ba52023e 12-Dec-2011 Shigeki Ohtsu

Fix missing increments of loop->counters

Revision tags: node-v0.6.6
# 0db3274f 05-Dec-2011 Ben Noordhuis

unix: check UV_CLOSING flag in uv__write()

uv__write() runs after the read callbacks have fired. Said callbacks may have
closed the handle, handle that graciously.

Revision tags: node-v0.6.4, node-v0.6.3, node-v0.6.2
# 2007eb81 16-Nov-2011 Ryan Dahl

Set uv_write_t errno correctly

Fixes #206.

Revision tags: node-v0.6.1, node-v0.6.0
# e1bee05e 02-Nov-2011 Ryan Dahl

UNIX: Loop on blocking streams

Also removes a superfluous syscall during uv_tty_init for writable TTY
streams.

Revision tags: node-v0.5.10
# ec825ffc 21-Oct-2011 Ben Noordhuis

unix: add TCP keepalive and no-delay control knobs

# 2069a24e 15-Oct-2011 Ben Noordhuis

unix: fix file descriptor leak

12345678910