version 1.17, 1999/12/02 20:16:34 |
version 1.18, 1999/12/15 20:03:23 |
|
|
|
|
/* Read data from the socket. */ |
/* Read data from the socket. */ |
len = read(connection_in, buf, sizeof(buf)); |
len = read(connection_in, buf, sizeof(buf)); |
if (len == 0) |
if (len == 0) { |
fatal("Connection closed by %.200s", get_remote_ipaddr()); |
log("Connection closed by %.200s", get_remote_ipaddr()); |
|
fatal_cleanup(); |
|
} |
if (len < 0) |
if (len < 0) |
fatal("Read from socket failed: %.100s", strerror(errno)); |
fatal("Read from socket failed: %.100s", strerror(errno)); |
/* Append it to the buffer. */ |
/* Append it to the buffer. */ |