diff options
author | max <max@tclers.tk> | 2011-06-16 15:21:10 (GMT) |
---|---|---|
committer | max <max@tclers.tk> | 2011-06-16 15:21:10 (GMT) |
commit | a2c0c5611d68ee996777ad68e480daae28488ad9 (patch) | |
tree | 4b2e1bc43ca9510d8c2daa9387ed66843996aaa4 /unix | |
parent | f5123e0b70f74ddc3f0521870aa1c318aff0aef6 (diff) | |
download | tcl-a2c0c5611d68ee996777ad68e480daae28488ad9.zip tcl-a2c0c5611d68ee996777ad68e480daae28488ad9.tar.gz tcl-a2c0c5611d68ee996777ad68e480daae28488ad9.tar.bz2 |
* doc/socket.n: Document the fact that the event loop is now needed for [socket -async]
* unix/tclUnixSock.c: Set up the file handler for async sockets to fire on exceptions in addition to writable state.
* tests/socket.test: Improve error reporting when socket-14.2 times out.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixSock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c index a883e8c..5ace251 100644 --- a/unix/tclUnixSock.c +++ b/unix/tclUnixSock.c @@ -971,7 +971,8 @@ CreateClientSocket( status = connect(state->fds.fd, state->addr->ai_addr, state->addr->ai_addrlen); if (status < 0 && errno == EINPROGRESS) { - Tcl_CreateFileHandler(state->fds.fd, TCL_WRITABLE, + Tcl_CreateFileHandler(state->fds.fd, + TCL_WRITABLE | TCL_EXCEPTION, TcpAsyncCallback, state); return TCL_OK; |