version 1.19, 2002/03/04 17:27:39 |
version 1.19.4.2, 2003/09/16 21:20:26 |
|
|
debug2("fd %d is O_NONBLOCK", fd); |
debug2("fd %d is O_NONBLOCK", fd); |
return; |
return; |
} |
} |
debug("fd %d setting O_NONBLOCK", fd); |
debug2("fd %d setting O_NONBLOCK", fd); |
val |= O_NONBLOCK; |
val |= O_NONBLOCK; |
if (fcntl(fd, F_SETFL, val) == -1) |
if (fcntl(fd, F_SETFL, val) == -1) |
debug("fcntl(%d, F_SETFL, O_NONBLOCK): %s", |
debug("fcntl(%d, F_SETFL, O_NONBLOCK): %s", |
|
|
return; |
return; |
} |
} |
opt = 1; |
opt = 1; |
debug("fd %d setting TCP_NODELAY", fd); |
debug2("fd %d setting TCP_NODELAY", fd); |
if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof opt) == -1) |
if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof opt) == -1) |
error("setsockopt TCP_NODELAY: %.100s", strerror(errno)); |
error("setsockopt TCP_NODELAY: %.100s", strerror(errno)); |
} |
} |