We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. Can you add support of closing connection after a period of inactivity
Here is the simple example what I want (class GelfTCPSender):
try { // reconnect if necessary or 5 min timeout occurred if (socket == null || os == null || lastSendTime + 5 * 60 * 1000 < System.currentTimeMillis()) { if (socket != null){ socket.close(); } socket = new Socket(host, port); os = socket.getOutputStream(); } os.write(message.toTCPBuffer().array()); lastSendTime = System.currentTimeMillis(); return true; } catch (IOException e) { // if an error occours, signal failure socket = null; return false; }
I have some problems with firewall and keep-alive sessions.
The text was updated successfully, but these errors were encountered:
Would tcp keepalive resolve this issue?
Sorry, something went wrong.
Fixed issue t0xa#84: Added support for TCP-Keepalive
d0fc620
No branches or pull requests
Hi.
Can you add support of closing connection after a period of inactivity
Here is the simple example what I want (class GelfTCPSender):
I have some problems with firewall and keep-alive sessions.
The text was updated successfully, but these errors were encountered: