unispeech/unimrcp

Slowness at Add Pending Control Channel

andrenatal opened this issue · 4 comments

Hello everyone!

We're having slowness problems to establish SDP sessions when the server is under high load, like the log below [1].

Notice that there's a gap of 8 seconds between Add Pending Control Channel and Send Answer. When we have just few calls happening, this step just happens atomically and instantaneously [2].

[1]

2020-08-06 19:45:32:407289 [NOTICE] Add Session <586c019d6aaa4c18>
2020-08-06 19:45:32:407302 [INFO]   Receive Offer 0x7f59ac018728 <586c019d6aaa4c18> [c:1 a:1 v:0]
2020-08-06 19:45:32:407308 [INFO]   Found MRCP Engine [msrecog] for Resource [speechrecog] 0x7f59ac018728 <586c019d6aaa4c18>
2020-08-06 19:45:32:409785 [INFO]   Add Pending Control Channel <586c019d6aaa4c18@speechrecog> [3]
2020-08-06 19:45:40:081542 [INFO]   Send Answer 0x7f59ac018728 <586c019d6aaa4c18> [c:1 a:1 v:0] Status OK

[2]

2020-08-06 21:23:28:755128 [INFO]   Add Pending Control Channel <99834292e45a4604@speechrecog> [1]
2020-08-06 21:23:28:762503 [INFO]   Send Answer 0x7fc138001a08 <99834292e45a4604> [c:1 a:1 v:0] Status OK

Anyone has an idea how to address that?

Thanks

Just had another occurrence. 13 seconds to respond:

2020-08-07 15:32:09:700685 [INFO]   Add Pending Control Channel <8a1d8f90927d44f9@speechrecog> [15]
2020-08-07 15:32:22:520183 [INFO]   Media Path 0x7f4258031df8 Source->[PCMU/8000/1]->Decoder->[LPCM/8000/1]->Bridge->[LPCM/8000/1]->Sink
2020-08-07 15:32:22:520207 [INFO]   Send Answer 0x7f4258031df8 <8a1d8f90927d44f9> [c:1 a:1 v:0] Status OK

Hi Andre,

Hope you are doing good.

Please see my response in this thread. The root cause is the same.

I have addressed the issue. The problem was the connection with the speech server blocking the multiplexing inside my plugin.