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=40107>.
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=40107

           Summary: JK should handle EAGAIN in jk_is_socket_connected()
           Product: Tomcat 5
           Version: 5.5.17
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


I am using mod_jk 1.2.14 with SUN ONE web server 6.1 on HP-UX.

I found that this error message on mod_jk log file.
-------------------------------------------------------
[&#54868; 7&#50900; 19 15:27:55 2006] [16718:0016] [info]  jk_ajp_common.c 
(1178): Socket 35
is not connected any more (errno=11)
[&#54868; 7&#50900; 19 15:27:55 2006] [16718:0016] [info]  jk_ajp_common.c 
(1202): Error
sending request. Will try another pooled connection
[&#54868; 7&#50900; 19 15:27:55 2006] [16718:0016] [info]  jk_ajp_common.c 
(1178): Socket 34
is not connected any more (errno=11)
[&#54868; 7&#50900; 19 15:27:55 2006] [16718:0016] [info]  jk_ajp_common.c 
(1202): Error
sending request. Will try another pooled connection
[&#54868; 7&#50900; 19 15:27:55 2006] [16718:0016] [info]  jk_ajp_common.c 
(1225): All
endpoints are disconnected or dead
-------------------------------------------------------------

Digging into mod_jk source code, jk_is_socket_connected() in jk_connect.c seems
 to have a problem.

In HP-UX, non-blocking read() would fail with errno 11 (EAGAIN) instead of
EWOULDBLOCK.

Reviewing errno.h and related files in several platforms, I found that
EWOULDBLOCK is same as EAGAIN in Linux, but NOT in HP-UX.
I feel that EAGAIN should be treated same as EWOULDBLOCK in
jk_is_socket_connected(). 

-- Jongjin

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