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

Gino Pirelli luipir at gmail.com
Mon Aug 19 08:16:44 PDT 2013


Hi

I've to admit that the B solution was already applied by Juergen
Fischer since 18-08-2012 using the correct timeout configuration
parameter... what code was I reading? sorry for the noise!

Luigi Pirelli (luigi.pirelli at faunalia.it)

On 29 July 2013 13:06, Gino Pirelli <luipir at gmail.com> wrote:
> 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