thanks a lot, Ricardo! you're right about HTTP pipeline. Opera is the only browser with (activated) HTTP pipeline. If I deactivate it the site is loaded very fast. The 10 seconds delay is exactly the timeout setting for individual requests. So far I could not get the webserver to deliver all files without timeout with activated HTTP pipeline (min/max number of threads doesn't make any difference). Is it possible that rocket can't handle this correctly? I've another app running on Apache and there I don't have this problem with Opera.
you're also right with the low timeout values. I've increased the socket timeout (default is only 5 seconds) and so far I don't have any weird troubles accessing the page over VPN connection. Alex Am Donnerstag, 3. Oktober 2013 22:14:07 UTC+2 schrieb Ricardo Pedroso: > > On Thu, Oct 3, 2013 at 4:43 PM, Alex <[email protected] <javascript:>>wrote: > >> I'm using the builtin webserver with web2py on Windows. >> >> When I refresh the page (to reload all files) of a small app in Opera it >> takes very long (>10 sec) until the page is completely loaded. When I check >> the network log (with Dragonfly) I see that usually the first 10-20 files >> (css, js, images, etc.) are loaded very fast. The next couple of files are >> delayed for about 10 seconds (request is scheduled, header and body is >> written immediately, then the sequence is terminated and retried after >> about 10 seconds). After 10 seconds all remaining files are loaded quite >> fast. >> >> Has anyone an idea what blocks loading these files? I guess the builtin >> webserver should be able to handle a couple of simultaneous requests. >> >> Strangely this problem does not happen with FF or IE. Maybe it is because >> the timing of sending requests is different? >> >> > I guess this can be due to HTTP Pipeline. Not sure, but I read somewhere > that opera use http pipeline. > > Try increase/decrease the number of threads in builtin server, by default > it's 10 threads to serve requests. > > You can start by match the number of threads to the number of machine > cores. > Even if you have only 2 cores, meaning having 2 threads in rocket to > handle requests, it can be more efficient > because the kernel will have less context switch's to make, but you will > have more serialized requests/responses. > Just test your use case. You have to play around... Also try different > timeout values, see below. > > > I have a similar issue when I access the page over a VPN with IE. Some >> scripts get corrupted and IE shows a syntax error (e.g. in the jquery js >> file). This problem only occurs with IE and not with the other browsers. I >> think it is related to the other issue, since it only happens when the >> whole page is refreshed and all files are requested. Still, I'm very >> confused... >> > > This can be due to low timeout values in rocket. > You can change those timeouts through command line, just look in: > python web2py -h > > > Ricardo > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

