-
Notifications
You must be signed in to change notification settings - Fork 324
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] KVS Client Sample Viewer sending the first signaling message takes 10 seconds on Windows #1856
Comments
Hi, can you check whether this delay persists when using the latest develop branch. |
Hi
If I manually add a definition for MAX_STATE_MACHINE_NAME_LENGTH, and rebuild, the build still fails with the following:
I checked older commits, and found that this commit introduced the createStateMachineWithName call:
So, the latest develop commit that builds for me is: I built this version: SHA-1: 3ba7c05 (10/13/2023), and the 10 seconds delay is still there. And I couldn't test any of the later commits. |
You would have to clean build. The |
I deleted build and open-source folders. Ran build_windows_openssl.bat again, this time build fails at this step:
|
Hi @mehmetcy84, I just tried this on a Windows EC2 instance and I do not see it taking 10 seconds:
This seems like it could be specific to your configuration somehow. Please let us know if anything has changed for you since the last comment |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Environment:
Latest unmodified Kinesis repo 1.9 built on Windows 10 64 bit. Built with build_windows_openssl.bat.
Issue:
The first signalling message sent from the client takes up to 10 seconds irrespective of its content/size. Using the unmodified kvsWebRTCClientViewer.exe against the WebRTC Test Page running as master.
The first signalling message ever sent from the client to the master takes 10 seconds. This is the case if I enabled or disabled useTURN, or TrickleICE. For all 4 combinations for these 2 parameters, independent from whatever signaling message goes first, the first and only the first signalling message being sent always takes 10 seconds, and the following signalling messages, if there are any, takes negligible time in comparison.
After testing the default, I modified the TURN, and TrickleICE boolean flags passed to the createSampleConfiguration function in samples/Common.c for test:
CHK_STATUS(createSampleConfiguration(pChannelName, SIGNALING_CHANNEL_ROLE_TYPE_VIEWER, TRUE, TRUE, logLevel, &pSampleConfiguration));
Here are all the logs for these cases:
TrickleICE=TRUE, UseTURN=TRUE (unmodified default)
TrickleICE=TRUE, UseTURN=FALSE
TrickleICE=FALSE, UseTURN=TRUE
TrickleICE=FALSE, UseTURN=FALSE
TrickleICE_OFF-TURN_OFF.txt
TrickleICE_OFF-TURN_ON.txt
TrickleICE_ON-TURN_OFF.txt
TrickleICE_ON-TURN_ON.txt
Here is a portion of logs from the default case:
...
2023-11-27 14:21:25.837 PROFILE iceAgentStartGathering(): [Relay candidates setup time] Time taken: 0 ms
2023-11-27 14:21:25.837 INFO main(): [KVS Viewer] Completed setting local description
2023-11-27 14:21:25.838 INFO main(): [KVS Viewer] Offer creation successful
2023-11-27 14:21:25.838 INFO main(): [KVS Viewer] Generating JSON of session description....
2023-11-27 14:21:25.838 VERBOSE signalingClientSendMessageSync(): Signaling Client Sending Message Sync
2023-11-27 14:21:25.839 DEBUG sendLwsMessage(): SDP_OFFER
...
2023-11-27 14:21:35.724 INFO main(): [KVS Viewer] Creating data channel...completed
2023-11-27 14:21:35.724 VERBOSE lwsWssCallbackRoutine(): WSS callback with reason 10
2023-11-27 14:21:35.724 DEBUG lwsWssCallbackRoutine(): Client is writable
2023-11-27 14:21:35.724 INFO main(): [KVS Viewer] Data Channel open now...
And this is a portion from the TURN=OFF TrickleICE=OFF case:
...
2023-11-27 15:40:29.387 INFO main(): [KVS Viewer] Candidate collection completed
2023-11-27 15:40:29.388 INFO main(): [KVS Viewer] Offer creation successful
2023-11-27 15:40:29.388 INFO main(): [KVS Viewer] Generating JSON of session description....
2023-11-27 15:40:29.388 VERBOSE signalingClientSendMessageSync(): Signaling Client Sending Message Sync
...
2023-11-27 15:40:39.195 DEBUG lwsWssCallbackRoutine(): Client is writable
2023-11-27 15:40:39.195 INFO main(): [KVS Viewer] Creating data channel...completed
2023-11-27 15:40:39.195 INFO main(): [KVS Viewer] Data Channel open now...
2023-11-27 15:40:39.195 VERBOSE lwsWssCallbackRoutine(): WSS callback with reason 10
2023-11-27 15:40:39.196 DEBUG lwsWssCallbackRoutine(): Client is writable
The text was updated successfully, but these errors were encountered: