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 2014/11/25 08:13:36 UTC

[Bug 57255] New: websocket sendMessage timeout

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

            Bug ID: 57255
           Summary: websocket sendMessage timeout
           Product: Tomcat 8
           Version: 8.0.15
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket
          Assignee: dev@tomcat.apache.org
          Reporter: benjamin1990@163.com

I debug tomcat origin code, found when the client disconnect abnormal (for
example the network is unreachable and device power off and so on), websocket
socket can send message as well。The class WsRemoteEndpointImplBase.java line
240 has assign the send timeout value is 20 seconds. Why can't throw a
TimeoutException, this confuse me.When the client disconnect abnormal ,there is
some notification or callback function can I use to notice the client is
disconnect abnormal and destory something.

-- 
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 57255] websocket sendMessage timeout

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

--- Comment #1 from Benjamin <be...@163.com> ---
I write socketServer use blocking-io and NIO ,found when the client disconnect
abnormal , then sendMessage use this channel will be throw an IOException :
Break pipe.

-- 
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 57255] websocket sendMessage timeout

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

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

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

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Bugzilla is not a support forum. Please take your question to the Apache Tomcat
users mailing list.

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