Skip to content
New issue

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

server connection time-out of 2minutes #29

Open
ghost opened this issue Jan 6, 2017 · 2 comments
Open

server connection time-out of 2minutes #29

ghost opened this issue Jan 6, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 6, 2017

While using the library in a server application our client application wants to re-use a single connection to the server.

Although we have this working we are finding that the server appears to be closing the connection ~2minutes after processing the last request.
For the client application there is a dialog whereby this timeout can be exceeded pending user input.

The QHttpServer::setTimeOut() method sets the time-out to close the connection Xms after receiving the initial connection so changing this doesn't solve our issue.

I haven't been able to identify where in the library this 2minute time-out is set - Is there an available method to change/extend this timeout?

Any help would be greatly appreciated.

@halybang
Copy link

QHttpConnection::setTimeOut() will restart timer for you.

@ghost
Copy link
Author

ghost commented Feb 16, 2017

@halybang - thanks for your help, this method does allow me to restart the timer with a custom time-out.

However I still can't find where the default 2 minutes is set in the library.

For now I can use QHttpConnection::setTimeOut() to achieve the desired effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant