Home » U++ Library support » U++ MT-multithreading and servers » WebSockets non blocking mode?
WebSockets non blocking mode? [message #47074] |
Mon, 28 November 2016 23:06  |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |

|
|
TcpSocket supports non blocking mode along with SocketWaitEvent class to wait for multiple sockets simultaneously. I couldn't find a way to asynchronously read incoming data with WebSocket as well as couldn't find a way to wait for multiple WebSockets until one of them receives a message. So I have to create one thread per each WebSocket which is really bad decision for production server with 1000+ connections. Does U++ lack async WebSOcket support, or my approach is totally wrong here?
Thanks in forward.
[Updated on: Tue, 29 November 2016 12:03] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 02:58:36 CEST 2025
Total time taken to generate the page: 0.01201 seconds
|