DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40525>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40525





------- Additional Comments From [EMAIL PROTECTED]  2006-09-18 23:56 -------
(In reply to comment #0)
The patch in my original comment is incorrect.  It does not preserve the timeout
when there is no socket timeout. Apologies!
Here is a corrected patch:


Index: jni/native/src/poll.c
===================================================================
--- jni/native/src/poll.c       (revision 446772)
+++ jni/native/src/poll.c       (working copy)
@@ -263,13 +263,16 @@
         /* Find the minimum timeout */
         for (i = 0; i < p->nelts; i++) {
             apr_interval_time_t t = now - p->socket_ttl[i];
-            if (t >= p->max_ttl) {
-                ptime = 0;
-                break;
-            }
-            else {
-                ptime = TCN_MIN(p->max_ttl - t, ptime);
-            }
+                       if (p->max_ttl > 0)
+                       {
+                               if (t >= p->max_ttl) {
+                                       ptime = 0;
+                                       break;
+                               }
+                               else {
+                                       ptime = TCN_MIN(p->max_ttl - t, ptime);
+                               }
+                       }
         }
     }
     for (;;) {

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to