mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 16:36:25 +00:00
Summary: @public The server dies after 30 seconds if it has no jobs on it's queue. The problem is that the jobs counter gets decreased before returning the bytes to the client. As a consequence, it's possible that the server dies while it's returning the bytes to the client, or just after it finished returning the bytes to the client. To avoid both issues lets move the counter decrease a few lines below and bump the timer to make sure we have time to fully write the bytes on the socket and let the client close the connection before the server dies. Reviewed By: @vjeux Differential Revision: D2445264