disable timeout for web sockets and event source
This commit is contained in:
parent
a39051a2d5
commit
1fd73a9262
|
@ -175,6 +175,7 @@ void AsyncEventSource::onConnect(ArEventHandlerFunction cb){
|
|||
}
|
||||
|
||||
void AsyncEventSource::_addClient(AsyncEventSourceClient * client){
|
||||
client->setRxTimeout(0);
|
||||
/*char * temp = (char *)malloc(2054);
|
||||
if(temp != NULL){
|
||||
memset(temp+1,' ',2048);
|
||||
|
|
|
@ -621,6 +621,7 @@ void AsyncWebSocket::_handleEvent(AsyncWebSocketClient * client, AwsEventType ty
|
|||
}
|
||||
|
||||
void AsyncWebSocket::_addClient(AsyncWebSocketClient * client){
|
||||
client->setRxTimeout(0);
|
||||
if(_clients == NULL){
|
||||
_clients = client;
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue