https://issues.apache.org/bugzilla/show_bug.cgi?id=49595

--- Comment #7 from Hiroshi Shirosaki <h.shiros...@gmail.com> 2011-08-12 
07:11:32 UTC ---
Created attachment 27380
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27380
fix a issue of destroying a same socket more than one

While my ajax web application was accessed by two browsers at the same time,
tomcat sometimes crashed.

When tomcat crashes at apr_pollset_remove(), fd->desc.s is NULL in do_remove()
function of tomcat-native poll.c.
It seems that a socket has been already destroyed.

I checked which method calls destorySocket() of AprEndpoint.
At line 1261 destroySocket(addS[i]), a same socket was destroyed within a
second.

I commented out line 1261, tomcat works fine.

Before line 1261, Poll.add return value was APR_EBADF(= 9).

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to