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

           Summary: Poll.create with THREADSAFE will silently switch the
                    flag off
           Product: Tomcat Native
           Version: 1.1.20
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Library
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: cos...@apache.org


If apr returns APR_ENOTIMPL the JNI code will just turn the flag off. 
I couldn't find any way for java side to find if the create poll was or was not
threadsafe. 

There are 2 options to fix it: 
- throw an exception - seems the right thing to do, java can do the fallback
- consistent with 'wakeable' - add a field and a method to check if it's on. 

It seems Tomcat code is not using the flag, not sure why - I would go with the
first option.

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