summaryrefslogtreecommitdiffstats
path: root/ttcp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-10 19:57:04 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-10 19:57:04 +0000
commitce342713d6ae95d4766c3d5e8a6a6f5e5c53de23 (patch)
treeb9a52eec9d4aff0c4d89af8aecb4f9dffadafc8d /ttcp
parentModified to delay at startup. (diff)
downloadnetwork-demos-ce342713d6ae95d4766c3d5e8a6a6f5e5c53de23.tar.bz2
Added debug print when test can't get a buffer. This is probably a fatal
error in the stack but it would be nice to get a message from the test just in case.
Diffstat (limited to 'ttcp')
-rw-r--r--ttcp/ttcp_orig/ttcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ttcp/ttcp_orig/ttcp.c b/ttcp/ttcp_orig/ttcp.c
index 4d5ebfd..0cc1c06 100644
--- a/ttcp/ttcp_orig/ttcp.c
+++ b/ttcp/ttcp_orig/ttcp.c
@@ -788,6 +788,7 @@ again:
cnt = sendto( fd, buf, count, 0, &sinhim, sizeof(sinhim) );
numCalls++;
if( cnt<0 && errno == ENOBUFS ) {
+ printf("ttcp: out of buffers -- delaying\n"); /*JRS*/
delay(18000);
errno = 0;
goto again;