On Sat, May 18, 2013 at 7:30 AM, Andriy <[email protected]> wrote:

> Ok, this is really strange. I changed line 68 (69 after Ricardo`s code
> addition) in *streamer.py* from:
> *headers.setdefault('Content-Type', contenttype(static_file))*
> to
> *headers.setdefault('Content-Type', 'text/css')*
>
> And problem gone! .css file have *text/css *headers, all other files have
> their respective headers. I understand this is a hack, but does this mean
> that problem is with web2py?


or within your code.
Did you, somewhere in your code, change the CONTENT_TYPE dict (located in
gluon/contenttype.py?

The symptoms you are having are two threads writing to the same memory
region at same time.



>
But more than that. I reverted *streamer.py *to original default code,
> restarted Apache (many times already) and still problem gone! So now I
> don`t even know is that my *headers.setdefault('Content-Type',
> 'text/css') *line that triggered it or what.. And why its persistent if I
> reverted to default *streamer.py *file...


Well, this is one more thing that make me believe that is a thread race
condition.
The errors are not predictable. They can happen now, tomorrow, one week
later... who knows.

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.


Reply via email to