[ 
https://issues.apache.org/jira/browse/QPID-3828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206175#comment-13206175
 ] 

Gordon Sim commented on QPID-3828:
----------------------------------

The following change 'fixes' the issue as described, but I suspect it may cause 
other problems (e.g. leaks or dangling pointers under other coniditions)?

{noformat}
Index: src/qpid/client/TCPConnector.cpp
===================================================================
--- src/qpid/client/TCPConnector.cpp    (revision 1234761)
+++ src/qpid/client/TCPConnector.cpp    (working copy)
@@ -160,7 +160,7 @@
     if (!closed) {
         if (aio) {
             // Established connection
-            aio->requestCallback(boost::bind(&TCPConnector::eof, this, _1));
+            aio->requestCallback(boost::bind(&TCPConnector::disconnected, 
this, _1));
         } else if (connector) {
             // We're still connecting
             connector->stop();

{noformat}
                
> When sending large messages loss of connection is not detected even with 
> heartbeats enabled
> -------------------------------------------------------------------------------------------
>
>                 Key: QPID-3828
>                 URL: https://issues.apache.org/jira/browse/QPID-3828
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.14, 0.15
>            Reporter: Gordon Sim
>            Assignee: Andrew Stitcher
>
> E.g run qpid-send --broker <remote-broker> --connection-options {heartbeat:8} 
> --messages 0 --content-size 1600 --report-every 1000 --address amq.topic
> then after some time pull the network cable (you have to do this, a kill 
> -STOP on the broker is *not* sufficient). The test will continue sending 
> messages then eventually hang (when buffers are full). If you reconnect the 
> cable, the connection will fail but if you don't, it will not.
> If you reduce the size e.g. to 100 bytes , the connection fails as expected 
> after two heartbeat intervals (16 secs in this case).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to