[Libwebsockets] [libwebsockets] #91: A question for sending request to sever when network changed

Trac trac at libwebsockets.org
Sat Oct 18 06:18:56 CEST 2014


#91: A question for sending request to sever when network changed
-----------------------------------+-----------------
 Reporter:  vistor88               |      Owner:
     Type:  defect                 |     Status:  new
 Priority:  major                  |  Milestone:
Component:  libwebsockets library  |    Version:
 Keywords:                         |
-----------------------------------+-----------------
 I have a question as follows:
 The current network of WiFi, an websocket connection communicate stable.
 If the network changes from WiFi to 3G or 2G suddenly, the socket won't
 close immediately and won't reconnect. At This moment, Client send message
 A to server (the network is 3G), the  message A cannot be send out, then
 change the network to wifi, socket connection is open still, but the
 request message look seem block and delay. For example, this moment the
 client send message B to server( but actually the A will be sent), send C(
 actually the B will be sent), send D(actually the C will be sent),...,
 could anyone can tell me why the requeting message delay? How does the
 libwebsocket  trigger the message send?

--
Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/91>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list