tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jni/native/src poll.c
Date Tue, 19 Apr 2005 19:13:16 GMT
mturk       2005/04/19 12:13:16

  Modified:    jni/native/src poll.c
  Log:
  Add current time so that timeout works.
  
  Revision  Changes    Path
  1.11      +3 -1      jakarta-tomcat-connectors/jni/native/src/poll.c
  
  Index: poll.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/poll.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- poll.c	19 Apr 2005 16:32:11 -0000	1.10
  +++ poll.c	19 Apr 2005 19:13:16 -0000	1.11
  @@ -94,7 +94,9 @@
       fd.reqevents = (apr_int16_t)reqevents;
       fd.desc.s = J2P(socket, apr_socket_t *);
       fd.client_data = J2P(data, void *);
  -    p->socket_set[p->nelts++] = fd;
  +    p->socket_ttl[p->nelts] = apr_time_now();
  +    p->socket_set[p->nelts] = fd;
  +    p->nelts++;
       return (jint)apr_pollset_add(p->pollset, &fd);
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message