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

Andrew Stitcher commented on PROTON-1759:
-----------------------------------------

The stack trace that detects the error is:
{noformat}
#0  pni_process_ssn_setup (transport=0x555555ad4a30, endpoint=0x555555ae21d0) 
at /home/andrew/Work/proton/src/proton-c/src/core/transport.c:1928
#1  0x00007fffec94b6dd in pni_phase (transport=0x555555ad4a30, 
phase=0x7fffec949a0f <pni_process_ssn_setup>) at  
home/andrew/Work/proton/src/proton-c/src/core/transport.c:2462
#2  0x00007fffec94b744 in pni_process (transport=0x555555ad4a30) at 
/home/andrew/Work/proton/src/proton-c/src/core/transport.c:2473
#3  0x00007fffec94c03a in pn_output_write_amqp (transport=0x555555ad4a30, 
layer=0, bytes=0x555555ad6bd0 "AMQP", available=16384) at 
/home/andrew/Work/proton/src/proton-c/src/core/transport.c:2631
#4  0x00007fffec94c28c in transport_produce (transport=0x555555ad4a30) at 
/home/andrew/Work/proton/src/proton-c/src/core/transport.c:2684
#5  0x00007fffec94cc83 in pn_transport_pending (transport=0x555555ad4a30) at 
/home/andrew/Work/proton/src/proton-c/src/core/transport.c:2963
{noformat}

> Proton that is, pn_session() or pn_session_open(), has no way to signal an 
> error if can't allocate a channel
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: PROTON-1759
>                 URL: https://issues.apache.org/jira/browse/PROTON-1759
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>            Reporter: Andrew Stitcher
>            Priority: Major
>              Labels: correctness
>
> If you set the channel_max to 0, signaling that only 1 channel (hence 
> session) is allowed.but try to open 2 sessions, Proton does not return any 
> kind of error;
> Proton-c will log a message:
> {noformat}
> [0x555668823f90]:unable to find an open available channel within limit of 0
> [0x555668823f90]:process error -2{noformat}
> This is not very helpful!



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

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

Reply via email to