PDA

View Full Version : QHttp reconnects?



barrygp
28th August 2009, 18:56
Does the QHttp class reconnect in the background if the conenction is lost.. or if the MaxKeepAlive (for connecting to an apache server) requests have been reached?
My laptop is not reconnecting for my application, but other users are able to reconnect.

Thanks,

--Greg

vfernandez
29th August 2009, 08:39
AFAIK, QHttp connects when you call get(), post(), head() or request(). You don't need to care about the connection. You just call get() and QHttp will do the work. However, you can always call QHttp::state() to know if it's still connected and if you want to customize the behaviour, you may set your own QTcpSocket by using QHttp::setSocket().