disable timeout for web sockets and event source

This commit is contained in:
me-no-dev 2016-09-23 21:44:52 +03:00
parent a39051a2d5
commit 1fd73a9262
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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;