Skip to content

Instantly share code, notes, and snippets.

@nkalra0123
Created June 27, 2021 12:07
Show Gist options
  • Save nkalra0123/003b5a3ef7844fa537151b97c6759d91 to your computer and use it in GitHub Desktop.
Save nkalra0123/003b5a3ef7844fa537151b97c6759d91 to your computer and use it in GitHub Desktop.
/**
* Maximum time to wait on Socket.getInputStream().read() (in milliseconds)
* This is required as the Keep-Alive HTTP connections would otherwise block
* the socket reading thread forever (or as long the browser is open).
*/
public static final int SOCKET_READ_TIMEOUT = 5000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment