salman0ansari / whatsapp-api-nodejs

RESTful WhatsApp API with Multiple Device Support
GNU General Public License v3.0
1.27k stars 606 forks source link

too many open and close connection when instance is restore #769

Open xinkyo opened 1 year ago

xinkyo commented 1 year ago

RESTORE_SESSIONS_ON_START_UP=true when the server restart, the instance restore automatically ,or through link /instance/restore they are too many open and close connections flooding, it could not restore successfuly, I have to open new connection. below is just few.

'ctwhatappreceiver start' stdClass::set_state(array( 'type' => 'connection', 'body' => stdClass::__set_state(array( 'connection' => 'open', )), 'instanceKey' => '92dbcc4d-652e-4def-afb1-01bc7653aac7', )) 'ctwhatappreceiver' 'ctwhatappreceiver start' stdClass::set_state(array( 'type' => 'connection', 'body' => stdClass::set_state(array( 'connection' => 'close', )), 'instanceKey' => '92dbcc4d-652e-4def-afb1-01bc7653aac7', )) 'ctwhatappreceiver' 'ctwhatappreceiver start' stdClass::__set_state(array( 'type' => 'connection', 'body' => stdClass::set_state(array( 'connection' => 'open', )), 'instanceKey' => '92dbcc4d-652e-4def-afb1-01bc7653aac7', )) 'ctwhatappreceiver' 'ctwhatappreceiver start' stdClass::__set_state(array( 'type' => 'connection', 'body' => stdClass::__set_state(array( 'connection' => 'close', )),

ibkhall commented 10 months ago

I have same issue