Hi Massimo,

thanks for your reply. It must be the session. Accessing the same app
through
a different subdomian (apache alias) does not block.

The controller uses urllib.urlretrieve to download a remote resource.
It also uses
the reporthook parameter of urlretrieve to update a session variable
with the progress
of the download. At the same time the frontend repeatedly issues (or
should) ajax calls
to fetch and display the progress. The ajax calls as well as other
calls to
samedomain/.../default/index
block until the controller that uses urlretrieve returns.

The progress indicator does not need to be synchronized perfectly. Is
there a way
to unlock the session? What else might I be able to try? Sth like
memcache perhaps?

Thanks,
HC

On Sep 12, 5:31 pm, mdipierro <[email protected]> wrote:
> Can be more explicit about what does not work? This could be because
> session are locked when in use.
>
> On Sep 12, 10:03 am, hcvst <[email protected]> wrote:
>
> > Hi,
>
> > in one of my controllers I am using urllib.urlretrieve to download a
> > file from a remote site.
> > Obviously the controller function only returns when done, but also all
> > other requests to the
> > app are not serviced. Requests to other apps on the same w2p instance
> > are however.
> > Is that normal? As such, I can only serve one user at a time.
>
> > I uses mod_wsgi.
>
> > Regards,
> > HC
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to