You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rabih Mourad (JIRA)" <ji...@apache.org> on 2019/03/27 17:15:00 UTC

[jira] [Comment Edited] (PROTON-1862) idle timeout not working on linux

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

Rabih Mourad edited comment on PROTON-1862 at 3/27/19 5:14 PM:
---------------------------------------------------------------

We block the receiver container with a sleep to simulate a hanging on the server side after the connection is established. The client (sender) does not sleep therefore after the idle timeout is expired it should fail and on linux it is not.

But as Ali said in his last comments. The issue is that the server (receiver) is calling the on_connection_open and the on_session_open callbacks before the real amqp connection is established. Therefore there is no idle timeout yet.

Therefore the fix might be to call those call backs after the real connection is established on the wire.

The regression was introduced in the version 0.18.1


was (Author: rabih.promail):
We block the receiver container with a sleep to simulate a hanging on the server side after the connection is established. The client (sender) does not sleep therefore after the idle timeout is expired it should fail and on linux it is not.

But as Ali said in his last comments. The issue is that the server (receiver) is calling the on_connection_open and the on_session_open callbacks before the real amqp connection is established. Therefore there is no idle timeout yet.

Therefore the fix might be to call those call backs after the real connection is established on the wire.

 

>  idle timeout not working on linux
> ----------------------------------
>
>                 Key: PROTON-1862
>                 URL: https://issues.apache.org/jira/browse/PROTON-1862
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: cpp-binding
>    Affects Versions: proton-c-0.22.0
>            Reporter: Jeremy
>            Priority: Critical
>              Labels: reproducer
>         Attachments: proton_1862_tests.txt, test_case.cpp
>
>
> We faced an issue with the idle timeout on linux. On windows, it seems to work.
> In our proton feature test suite, we test the idle timeout feature by doing a sleep in the method on_session_open.
> This should trigger a connection timeout. It works on windows, and it used to work with proton v0.16.0 on windows and linux.
> Removing the sleep from the on_session_open and putting it in on_connection_open, yields the same result.
> See attached file to reproduce.
> Machines:
>  * Windows machine
>  ** OS: Windows 7
>  ** Compiler: MSVC 2013 Version 12 Update 5
>  * Linux machine
>  ** OS: Red Hat Enterprise Linux Server release 6.4 (Santiago)
>  ** Compiler: g++491 (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org