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 error.c
Date Tue, 19 Apr 2005 19:55:42 GMT
mturk       2005/04/19 12:55:42

  Modified:    jni/native/src error.c
  Log:
  Add APR_TIMEUP testing to ETIMEDOUT.
  
  Revision  Changes    Path
  1.6       +4 -1      jakarta-tomcat-connectors/jni/native/src/error.c
  
  Index: error.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/error.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- error.c	19 Apr 2005 16:32:11 -0000	1.5
  +++ error.c	19 Apr 2005 19:55:42 -0000	1.6
  @@ -17,6 +17,9 @@
   #include "apr_pools.h"
   #include "tcn.h"
   
  +/* Merge IS_ETIMEDOUT with APR_TIMEUP
  + */
  +#define TCN_STATUS_IS_ETIMEDOUT(x) (APR_STATUS_IS_ETIMEDOUT((x)) || ((x) == APR_TIMEUP))
   /*
    * Convenience function to help throw an Exception.
    */
  @@ -180,7 +183,7 @@
           APR_IS(75, APR_STATUS_IS_EBUSY);
           /* Socket errors */
           APR_IS(90, APR_STATUS_IS_EAGAIN);
  -        APR_IS(91, APR_STATUS_IS_ETIMEDOUT);
  +        APR_IS(91, TCN_STATUS_IS_ETIMEDOUT);
           APR_IS(92, APR_STATUS_IS_ECONNABORTED);
           APR_IS(93, APR_STATUS_IS_ECONNRESET);
           APR_IS(94, APR_STATUS_IS_EINPROGRESS);
  
  
  

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