![]() |
upload files problem
It happends sometimes: when i uploading files it don't finish request:
Code:
2009-12-07 12:10:26.923 [NOTICE] [127.0.0.1:58421-0#fdb.dev] Content len: 224961, Request line: safari 4 as webbrowser when i use script/server (simple ruby web server for developing) it works ok. |
Looks like LSWS has difficulty parsing "Content-length" from the POST request.
Do you have similar issue with other browsers? Can provide a TCPDUMP or wireshark capture of the request header and body? tcpdump -s0 -X -i lo port <your_lsws_port> wireshark is for windows. |
|
Not sure why it sent POST twice via two connections.
The request itself looks normal. in the debug log, does it ever show something like Finsh request body xxxx/227232 bytes |
I think that i know answer.
I was using observer on form (on submit). 2 request was probably reason why it works so bad. 1 request goes to iframe (ajax request can't send file fields) and second was by my mistake send by ajax. No i fixed that and i hope it will resolve my problem with uploading. |
hmm removing observer(onsubmit) don't change to mutch.
Quote:
|
With keep-alive it don't works but without is ok. How it is possible?
i set bigger timeout for keep-alive maby this will help. |
OK, we will do more test on this.
|
Can you please send us the full debug log for two consecutive keepalive requests, and the second the request is hanging?
|
well, I tried the Safari 4.0.2 and 4.0.4 on a MacBook, it wont able to do consecutive POST on a keepalive connection. It crashes when sends the second request.:eek:
More likely a bug in Safari. The solution is to turn off keepalive when detect POST request from Safari. Will add a feature in 4.0.12 to turn off keepalive with rewrite rule when "nokeepalive" environment is set. |
| All times are GMT -7. The time now is 02:21 PM. |