[Qgis-developer] before a RFC... how to develop WMS retry?

Gino Pirelli luipir at gmail.com
Mon Jul 29 04:06:33 PDT 2013


Hi

I'm evaluating a work about managing tile download retry during a WMS request.

Analyzing the code there are different solutions
A) implementing a new requet in QgsWmsProvider::tileReplyFinished if
ther is an error (probabilly it's better to re-organize the logic of
this routine because there are too many exit points)
B) adding a configuration method in QgsNetworkAccessManager(subclass
of QNetworkAccessManager) adding managing of retry. In this case all
QGis can use this feature.

I noticed that the option parameter:
Settings->Options->Network->Timeout for network requests (ms)
configure only  QgsHttpTransaction::httpTransaction(...) call that is
ONLY used inside mapserver core plugin code (option name is at lest
not comprensible)

Timeout could be another configuration parameter added to
QgsNetworkAccessManager.
Timeout managing could be managed as here:
http://qt-project.org/forums/viewthread/15222
that is the same solution used in QgsHttpTransaction

thanks, Lugi Pirelli (luigi.pirelli at faunalia.it)


More information about the Qgis-developer mailing list