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:34 GMT
trawick     2004/01/09 11:25:34

  Modified:    test     Tag: APR_0_9_BRANCH server.c
  Log:
  set timeout on socket prior to recv, since data may not
  be available immediately
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.39.2.1  +3 -0      apr/test/server.c
  
  Index: server.c
  ===================================================================
  RCS file: /home/cvs/apr/test/server.c,v
  retrieving revision 1.39
  retrieving revision 1.39.2.1
  diff -u -r1.39 -r1.39.2.1
  --- server.c	1 Jan 2003 00:01:56 -0000	1.39
  +++ server.c	9 Jan 2004 19:25:34 -0000	1.39.2.1
  @@ -169,6 +169,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