diff --git a/echoserver/echoserver.c b/echoserver/echoserver.c index 5456cb9..d3e59f9 100644 --- a/echoserver/echoserver.c +++ b/echoserver/echoserver.c @@ -125,6 +125,7 @@ int main(int argc, char **argv) // make sure that the connection is still open before attempting to send. if(messageBytes <= 0) { + printf("\nmessageBytes: %d\n", messageBytes); // if it is not open, close the socket and remove the socket from the socket list using FD_CLR() close(fileIter); FD_CLR(fileIter, &socketList);