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 Mon, 18 Apr 2005 15:43:35 GMT
mturk       2005/04/18 08:43:35

  Modified:    jni/native/src poll.c
  Log:
  If add queue is too large, do not return APR_ENOMEM, but rather
  bail out from the add loop. Whats in the queue will be added on the next
  call.
  
  Revision  Changes    Path
  1.9       +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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- poll.c	18 Apr 2005 15:24:01 -0000	1.8
  +++ poll.c	18 Apr 2005 15:43:35 -0000	1.9
  @@ -198,7 +198,9 @@
       for (n = 0; n < p->nadds; n++) {
           apr_pollfd_t pf = p->query_add[n];
           if (p->nelts == p->nalloc) {
  -            rv = APR_ENOMEM;
  +            /* In case the add queue is too large
  +             * skip adding to pollset
  +             */
               break;
           }
           if ((rv = apr_pollset_add(p->pollset, &pf)) != APR_SUCCESS)
  
  
  

---------------------------------------------------------------------
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