httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fima Furman" <f...@openair.com>
Subject Proxy server cuts off beginning of buffer when specific header is used
Date Mon, 24 Jun 2002 14:38:19 GMT

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> header causes
proxy server to loose parts of buffer.

After upgrade to 1.3.26 our XML API stopped working and we isolated the
following problem:

The following API XML response when passing through Proxy server:

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?><response><Auth
status="0"/><Version
status="0"><number>1.61</number><url>http://release.openair1.com/download/Op
enAi
rOffLine161.exe</url><size>1246882</size></Version><Read
status="0"><Slip><type>T</type><description/><total>0.00</total><projectid/>
<tax
_location_name/><updated><Date><year>2002</year><minute>18</minute><second>3
5</s
econd><hour>10</hour><month>01</month><day>07</day></Date></updated><notes>R
az
Dva
Tri
Chetyre</notes><currency>USD</currency><total_with_tax/><categoryid/><rate>0
.00<
/rate><payment_typeid/><userid>1</userid><gl_code>1234455454</gl_code><unitm
/><i
d>11</id><timer_start/><minute/><projecttaskid/><created><Date><year>2000</y
ear>
<minute>45</minute><second>53</second><hour>10</hour><month>11</month><day>1
7</d
ay></Date></created><cost>0.000</cost><city/><invoiceid/><itemid/><date><Dat
e><y
ear>2000</year><minute/><second/><hour/><month>11</month><day>13</day></Date
></d
ate><hour>4</hour><customerid>40</customerid><quantity>0.00</quantity></Slip
></r
esponse>

would return nothing, or would cut off buffer returning only the end of the
full response. When we tried to connect to webserver directly (bypassing
proxy), the whole response was returned with no porblems. Then we tried
putting
a line break after initial:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>. As the result
the
whole response below that line was intact but this line got chewed off by
proxy. Then we put the following sequence:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> \n <?xml
version="1.0" encoding="iso-8859-1" standalone="yes"?> <the rest of the
response>

(Two identical headers with line break in between and then full response)
The
first header got chewed off, the second one remained there and the rest of
the
response was fine. This hack enabled us to get back to working API.

We can replicate this problem on all machines running new version of Apachi.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message