You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/02/21 20:28:37 UTC

[Bug 60761] New: Unable to re-use/extend NioEndpoint

https://bz.apache.org/bugzilla/show_bug.cgi?id=60761

            Bug ID: 60761
           Summary: Unable to re-use/extend NioEndpoint
           Product: Tomcat 8
           Version: 8.5.x-trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: amit.pande@veritas.com
  Target Milestone: ----

We plan to extend/re-use the NioEndpoint of Tomcat 8.5.x and override the
following methods:

1. Bind
2. Unbind
3. UnlockAccept
4. Acceptor

Intend to use most of the NIO code for poller threads and other start stop
logic. One issue faced was that “stopLatch” is not accessible outside the
NioEndpoint class. This stopLatch is initialized during “bind” and used during
“stop”. But since we override bind and don’t have access to “stopLatch”we’re
facing issues while using the default NioEndpoint implementation.

Could this field protected similar to other fields such as pollerThreadCount,
acceptorThreadCount?

Reflection seems too hack-ish and we don’t see any issues with making this
field protected instead of private.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60761] Unable to re-use/extend NioEndpoint

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60761

--- Comment #1 from Amit Pande <am...@veritas.com> ---
Any guidance on this?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60761] Unable to re-use/extend NioEndpoint

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60761

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Fixed in:
- trunk for 9.0.0.M18 onwards
- 8.5.x for 8.5.12 onwards

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org