![]() |
500 Server Error on 3.0 - works fine on 2.2.6
On 2.2.6, I get 200 OK:
Code:
["my.domain.com"] my.client.ip - - [23/Mar/2007:17:55:47 -0700] "GET /dataservice.asmx/RequestProgramData?UUID=EGU7TZLA1JA94H679Z9WVV5ETEEG17&ProviderId=A_00001&DaysRequested=8 HTTP/1.1" 200 438834 "-" "curl/7.13.1 (powerpc-apple-darwin8.0) libcurl/7.13.1 OpenSSL/0.9.7l zlib/1.2.3"Code:
["my.domain.com"] my.client.ip - - [23/Mar/2007:17:52:27 -0700] "GET /dataservice.asmx/RequestProgramData?UUID=EGU7TZLA1JA94H679Z9WVV5ETEEG17&ProviderId=A_00001&DaysRequested=8 HTTP/1.1" 500 394 "-" "curl/7.13.1 (powerpc-apple-darwin8.0) libcurl/7.13.1 OpenSSL/0.9.7l zlib/1.2.3"Code:
2007-03-23 17:52:27.265 [DEBUG] [*:80] New connection from my.client.ip:62163.Any idea ? |
Looks like your scripting engine sent back a response header indicating a compressed response body while the response body is not compressed, for some reason LSWS think the client is not capable of handling compressed response, so it try to uncompress it.
Have you enabled GZIP compression for dynamic content, maybe you need to flip that option under "server"->"tuning" tab. |
This PHP script returns compressed content, and a header which says it will return compressed content (using deflate, not gzip) is also sent back.
I can confirm that using LS 2.2.6: powermac:~ gb$ curl -i "http://my.domain.com/dataservice.asmx/RequestProgramData?UUID=EGU7TZLA1JA94H679Z9WVV5ETE EG17&ProviderId=A_00001&DaysRequested=8" HTTP/1.1 200 OK X-AspNet-Version: 1.1.4322 X-Powered-By: InteSoft-ASPAccelerator/2.2 Cache-Control: private, max-age=0 Content-Type: text/xml; charset=utf-8 Content-Encoding: deflate Transfer-Encoding: chunked Server: LiteSpeed ??=T?Hsecy?졎ƗJ??t?V??bZ?????H~)?;???Ͳ??'?=S?AVf??? ^f}u?4??{Sf????֤?R8_&Jf?W?Hbc?ҥ?{C???*??NL_?D???D* ?d??=W??\OYny:??Z%???S^?2__.]?=?xf???uS?<uO???zi8<P?PID3?c?????? ... Returning the same thing under 3.0 doesn't work, with Dynamic Compression On or Off. I don't think LS should try to uncompress content if the script returns compressed content. Enabling Dynamic Compression should only affect uncompressed content, which LS would try to compress before returning it to the client. Thanks. |
I see, that's why.
Can you switch to gzip compression in PHP? or turn off compression in php and let LSWS handle this? LSWS only support gzip compression, this special case will be fixed, deflated content will not be touched. |
No, I can't use gzip instead of deflate. This script is used by a client which only understand deflate, and not gzip.
I'll wait for your fix; until then, I'll keep using 2.2.6. Thanks. |
This issue should be addressed in 3.0.1 release.
|
Will LS 2.2.6 send me an email when 3.0.1 will be avail ?
Or will only 3.0 send notices about new 3.x releases ? - Guillaume |
2.2.6 will notify you about hte new release.
|
| All times are GMT -7. The time now is 07:32 AM. |