Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VCL: improve debug output
[vpp.git]
/
src
/
vcl
/
sock_test_server.c
diff --git
a/src/vcl/sock_test_server.c
b/src/vcl/sock_test_server.c
index
ed36c7a
..
23fd46d
100644
(file)
--- a/
src/vcl/sock_test_server.c
+++ b/
src/vcl/sock_test_server.c
@@
-315,6
+315,7
@@
new_client (void)
errno_val = errno;
perror ("ERROR in new_client()");
fprintf (stderr, "ERROR: accept failed (errno = %d)!\n", errno_val);
errno_val = errno;
perror ("ERROR in new_client()");
fprintf (stderr, "ERROR: accept failed (errno = %d)!\n", errno_val);
+ return;
}
printf ("SERVER: Got a connection -- fd = %d (0x%08x)!\n",
}
printf ("SERVER: Got a connection -- fd = %d (0x%08x)!\n",
@@
-681,6
+682,7
@@
main (int argc, char **argv)
close (client_fd);
#endif
conn_pool_free (conn);
close (client_fd);
#endif
conn_pool_free (conn);
+ printf ("SERVER: Closed client fd %d\n", client_fd);
#if ! SOCK_SERVER_USE_EPOLL
if (ssm->nfds == (ssm->listen_fd + 1))
#else
#if ! SOCK_SERVER_USE_EPOLL
if (ssm->nfds == (ssm->listen_fd + 1))
#else