httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9534] - rewritemap using external map program gets out of sync
Date Tue, 20 Aug 2002 17:34:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9534>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9534

rewritemap using external map program gets out of sync





------- Additional Comments From jwoolley@apache.org  2002-08-20 17:34 -------
Okay, upon further investigation, I believe the correct fix is actually this: 
 
line 3463: 
 
-        ((rc = apr_procattr_io_set(procattr, APR_FULL_BLOCK, 
-                                  APR_FULL_NONBLOCK, 
-                                  APR_FULL_NONBLOCK)) != APR_SUCCESS) || 
+        ((rc = apr_procattr_io_set(procattr, APR_FULL_BLOCK, APR_FULL_BLOCK, 
+                                   APR_NO_PIPE)) != APR_SUCCESS) || 
 
 
It's because reads are set to nonblocking mode that we're getting hosed here.  
You shouldn't have to check for APR_EAGAIN from apr_file_read()... it's only 
getting returned because we told it to (by setting nonblocking mode).  Oops! 
 
Please let me know if this fixes it and I'll commit the change. 
 
--Cliff

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message