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

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

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

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
First of all, a Future<Void> is never going to return true.

Yes, it is impossible to cancel those Futures. Once bytes have been written to
the network, there is no "unwrite these bytes" API so messages cannot be
cancelled once started.

If you use message batching then Tomcat will buffer messages internally.

If you do not use message batching then the network layer will buffer data in
the TCP buffers. If the messages are small 80 of them are not going to fill the
TCP buffers. With long timeouts Tomcat isn't going to see any network issues
until those TCP buffers are filled.

Tomcat has unit tests that check that this behaves correctly. Detecting the
failure requires a *lot* of data to be writtem server side before the problem
is detected.

Generally, the behavoiur you describe is a good thing. You want systems to be
robust against temporary network glitches.

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