Home » U++ Library support » U++ Core » How to close the websocket connection
Re: How to close the websocket connection [message #49459 is a reply to message #48944] |
Wed, 14 February 2018 19:17 |
uppjj
Messages: 9 Registered: February 2018 Location: France
|
Promising Member |
|
|
Hello
I got the same problem, "Close" put my websocket client in infinite loop.
Server receives the "Close" message from the client but does not actually send the response, because it is in non-blocking mode.
I just do this change in uppsrc/core/WebSocket.cpp , function "out":
// while(IsBlocking() && socket->IsOpen() && !IsError() && out_queue.GetCount())
while((IsBlocking() || (s[0] == CLOSE)) && socket->IsOpen() && !IsError() && out_queue.GetCount())
and got "Close" working well...
[Updated on: Wed, 14 February 2018 21:10] by Moderator Report message to a moderator
|
|
|
|
|
How to close the websocket connection
By: Tess on Tue, 07 November 2017 11:37
|
|
|
Re: How to close the websocket connection
|
|
|
Re: How to close the websocket connection
By: mirek on Wed, 15 November 2017 08:57
|
|
|
Re: How to close the websocket connection
|
|
|
Re: How to close the websocket connection
By: uppjj on Wed, 14 February 2018 19:17
|
|
|
Re: How to close the websocket connection
By: mirek on Sat, 17 February 2018 12:01
|
|
|
Re: How to close the websocket connection
By: uppjj on Sat, 24 February 2018 15:59
|
|
|
Re: How to close the websocket connection
By: mirek on Sat, 24 February 2018 17:07
|
|
|
Re: How to close the websocket connection
By: uppjj on Wed, 28 February 2018 15:24
|
|
|
Re: How to close the websocket connection
By: mirek on Wed, 28 February 2018 16:25
|
|
|
Re: How to close the websocket connection
By: Klugier on Wed, 28 February 2018 23:27
|
|
|
Re: How to close the websocket connection
By: uppjj on Thu, 01 March 2018 16:55
|
|
|
Re: How to close the websocket connection
By: mirek on Fri, 02 March 2018 15:28
|
|
|
Re: How to close the websocket connection
By: uppjj on Sat, 03 March 2018 00:18
|
|
|
Re: How to close the websocket connection
By: mirek on Sat, 03 March 2018 10:19
|
|
|
Re: How to close the websocket connection
By: uppjj on Sun, 04 March 2018 15:51
|
Goto Forum:
Current Time: Mon May 06 19:05:40 CEST 2024
Total time taken to generate the page: 0.03033 seconds
|