mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-08-01 11:44:42 +02:00
disable timeout for web sockets and event source
This commit is contained in:
@@ -175,6 +175,7 @@ void AsyncEventSource::onConnect(ArEventHandlerFunction cb){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AsyncEventSource::_addClient(AsyncEventSourceClient * client){
|
void AsyncEventSource::_addClient(AsyncEventSourceClient * client){
|
||||||
|
client->setRxTimeout(0);
|
||||||
/*char * temp = (char *)malloc(2054);
|
/*char * temp = (char *)malloc(2054);
|
||||||
if(temp != NULL){
|
if(temp != NULL){
|
||||||
memset(temp+1,' ',2048);
|
memset(temp+1,' ',2048);
|
||||||
|
@@ -621,6 +621,7 @@ void AsyncWebSocket::_handleEvent(AsyncWebSocketClient * client, AwsEventType ty
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AsyncWebSocket::_addClient(AsyncWebSocketClient * client){
|
void AsyncWebSocket::_addClient(AsyncWebSocketClient * client){
|
||||||
|
client->setRxTimeout(0);
|
||||||
if(_clients == NULL){
|
if(_clients == NULL){
|
||||||
_clients = client;
|
_clients = client;
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user