Is it possible to set timeout on QHttp objects?
Is it possible to set timeout on QHttp objects?
As far as I understand the docs you can't, since the QHttp is only a protocol implementation, not a server.
The timeout is set on the server.
I cannot see it too. But I don't agree with you. Because there must exist such a function that you can set request timeout. Maybe in the next release, hope so..
I am not realy a big Http erver/client coder, so I wont argue - but I don't see why there should be such a function - this is a server issue, not a protocot issue, IMHO.Because there must exist such a function that you can set request timeout.
In QTcpServer you can set the timeout, where I think it also makes sense.
Therefore, I don't think you will see setTimerout() in any future release in QHttp, unless it will turn to be a QHttp server inplementation, that binds the server and the protocol togeather.
In the operations of QHttp, such as get() set() etc, you have to give the QIODevice (the server) on which is aware of its own timeout.
Timeout is one of the most basic concepts of networking... In the case of HTTP protocols, it is actually present in the TCP/IP layer. What is disappointing to me is that from within the QHttp object we have no access to the underlying tcp connection properties.
Bookmarks