Home » U++ Library support » U++ Core » Problem with websocket connect method
Problem with websocket connect method [message #48954] |
Fri, 10 November 2017 07:05  |
shutalker
Messages: 15 Registered: November 2017 Location: Moscow
|
Promising Member |
|
|
I've got a problem with websocket connect method. When a server drops connection, a client is still waiting for something. So if I do blocking connect, my app execution will be blocked.
Here what I've found in source WebSocket.cpp:
...
if(socket->IsBlocking()) {
...
StartConnect();
while(opcode != READING_FRAME_HEADER)
Do0();
}
...
As I can understand, in blocking mode connect will never leave while cycle until it will read response header from server. And there is no check whether the socket was closed or an error was happened
I use upp sources from git: 97e1f20
Compiler: GCC 5.4.0
|
|
|
Goto Forum:
Current Time: Wed Jun 18 03:47:34 CEST 2025
Total time taken to generate the page: 0.05850 seconds
|