summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authormax <max@noemail.net>2011-06-16 15:21:10 (GMT)
committermax <max@noemail.net>2011-06-16 15:21:10 (GMT)
commita6df2a820cf5524221eb603ddf823ae90a9cc2be (patch)
tree4b2e1bc43ca9510d8c2daa9387ed66843996aaa4 /unix
parent57718babc61474ac6c97aaf4644faf9c587d8bb2 (diff)
downloadtcl-a6df2a820cf5524221eb603ddf823ae90a9cc2be.zip
tcl-a6df2a820cf5524221eb603ddf823ae90a9cc2be.tar.gz
tcl-a6df2a820cf5524221eb603ddf823ae90a9cc2be.tar.bz2
* doc/docket.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. FossilOrigin-Name: 68deb29eadeaa99871d0482cec38ff9a405b3895
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixSock.c3
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;