apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/test server.c
Date Fri, 09 Jan 2004 19:25:03 GMT
trawick     2004/01/09 11:25:03

  Modified:    test     server.c
  Log:
  set timeout on socket prior to recv, since data may not
  be available immediately
  
  Revision  Changes    Path
  1.43      +3 -0      apr/test/server.c
  
  Index: server.c
  ===================================================================
  RCS file: /home/cvs/apr/test/server.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- server.c	5 Dec 2003 01:02:31 -0000	1.42
  +++ server.c	9 Jan 2004 19:25:03 -0000	1.43
  @@ -176,6 +176,9 @@
       fprintf(stdout, "Server socket: %s:%u -> %s:%u\n", local_ipaddr, 
               local_port, remote_ipaddr, remote_port);
   
  +    APR_TEST_SUCCESS(rv, "Setting timeout on client socket",
  +        apr_socket_timeout_set(sock2, apr_time_from_sec(3)));
  +
       length = STRLEN;
       APR_TEST_BEGIN(rv, "Receiving data from socket",
           apr_socket_recv(sock2, datasend, &length))
  
  
  

Mime
View raw message