Open njalmeida opened 4 years ago
Hi @njalmeida ,
Sorry, I am not able to follow your post entirely and analyze all the data, but here are some comments regarding the general behavior.
By sending an offer with connection:existing, the client indicates its desire to use an existing connection. The server may or may not accept that based on internal configuration/policies.
Given the configuration attribute max-shared-use-count is set to 100, it is allowed to re-use a connection up to 100 times. Afterwards, the connection will be closed as soon as all the existing sessions are teared down. This is made to prevent unconditional growth of the memory pool associated with the connection.
Other than that, the client should be able to re-use an existing connection, if the server responds accordingly, and such a connection exists.
Thank you for your reply @achaloyan
The connection re-use up to max-shared-use-count to prevent the unconditional growth of the memory pool makes perfect sense and it was what caused my first connection to stop being reused, which is fine.
After that I was expecting a new connection and seeing it being re-used which did not happen. This can be explained by your comment "The server may or may not accept that based on internal configuration/policies" as I see indeed that the client sends an offer with connection:existing and the server replies with connection:new.
My only issue is in fact with the requests I shared in my first comment as those 5 requests failed to re-use the established MRCP connection. I see that the client sends the offers with connection:existing and the server replies also with connection:existing and by monitoring the connections on client using netstat I see that an MRCP connection is indeed ESTABLISHED at that point of time. From the server point of view everything seems to be with the expected behavior and you don't see anything that may be causing this issue, right? If so, this should probably be an issue on the client side as it sends the offer to use an existing connection that it then cannot use for some reason.
Might be related to #259.
I don't have any "Null MRCPv2 Connection" in my case but the issue description does seem to match the behavior I'm having
Hi, I'm facing an issue where it seems that sometimes new requests are not able to reuse an existing MRCPv2 connection. Below I have the info from a capture where it is visible that 5 new invites did not exchange any MRCP traffic. During this time an existing connection is established (as it can be seen in the netstat info I put below) but it seems that the client is not able to use it for some reason.
There seems to be an inconsistent behavior on the reuse of existing connections (11:49:10 to 12:00:54) I'm not fully understanding and this keeps happening from time to time.
Could you give me an hint on what can be causing this? Thanks
200 OK reply from server:
MRCPv2 active connections every 15s: https://pastebin.com/ux0ACRzs
Client: Freeswitch (mod_unimrcp) Server: uniMRCP server 1.5.0 mrcpv2-uas configuration: