On Fri, May 17, 2013 at 7:23 PM, Andriy <[email protected]> wrote:
> I use Python 2.7.3
>
> The problem manifests in all browsers. In FF its really rare. In Opera
with
> "Max Connections To Server" > 2 its almost every time you load a page. In
> Opera with "Max Connections To Server" < 2 its 1 in 30-50 hits, or every
> time if you reload a page with CTRL+F5. In Chrome its similar to Opera if
> you press CTRL+F5.
>
> Site crashed with another problem right now. I hope I will get it running
in
> an hour. You can open it by yourself if you want. Its www.autosim.ru
>
> I think that all static files are served by Apache. But I`m not sure.
No, they are being served by web2py.
What is your web2py version?
This seems like a threads race problem.
Can you open gluon/streamer.py and search for:
def stream_file_or_304_or_206(
static_file,
chunk_size=DEFAULT_CHUNK_SIZE,
request=None,
headers={},
status=200,
error_message=None
):
(....)
and change to:
def stream_file_or_304_or_206(
static_file,
chunk_size=DEFAULT_CHUNK_SIZE,
request=None,
headers=None,
status=200,
error_message=None
):
headers = headers or {}
(....)
and then test it to see if it fix the problem.
Even if it does not fixed this change should be applied.
Ricardo
--
---
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.