httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ChiaTzung Liu" <ChiaTzung....@zyxel.com.tw>
Subject RE: [users@httpd] Overlap some content when using pppoe+httpd
Date Wed, 17 Mar 2010 14:08:22 GMT
I used strace to watch httpd, I found it use sendfile64 to write date to socket.
But my cpu doesn't 64bits. Does anyone know sendfile64 whether can work on 32bits cpu?
Or how can I do to let httpd not to use sendfile64?

-----------------------------------------------
Regards,
Aslan Liu


-----Original Message-----
From: Jeff Trawick [mailto:trawick@gmail.com] 
Sent: Wednesday, March 17, 2010 7:27 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Overlap some content when using pppoe+httpd

On Wed, Mar 17, 2010 at 5:03 AM, ChiaTzung Liu
<ChiaTzung.Liu@zyxel.com.tw> wrote:
> Hi,
>
>
>
> My pc is installed linux-2.6.24.4, httpd-2.2.9, rp-pppoe-3.8 and ppp-2.4.4.
>
> It connects to WAN by PPPoE, so it has both of WAN IP and LAN IP.
>
> For example, 172.23.26.130(LAN) and 140.35.25.73(PPPoE).
>
>
>
> Then, I put a file which size is larger than 16396 bytes on my pc for
> downloading.
>
> After that, I use http://140.35.25.73/file and https://140.35.25.73/file to
> download this file.
>
> If I use https, the downloaded file is correct. But not for http.
>
> For example, the file original content may be...
>
> =================================
>
> abcdefghijklmnopqrstuvwxyz
>
> =================================
>
>
>
> And the downloaded file by http may be...
>
> =================================
>
> abcdefghijklklmnopqrsrstuvwxyz
>
> =================================
>
>
>
> If use wireshark to watch packets, will see...
>
>
>
> Packet1(data part):
>
> abcdefghijkl
>
> Packet2(data part):
>
> klmnopqrs
>
> Packet3(data part):
>
> rstuvwxyz
>
>
>
> It is easy to find that the returned data isn't correct, some overlap
> happens. The interesting thing is...
>
> 1.      It only happens when the file size is larger than 16396 bytes
>
> 2.      https is ok, only http has this problem
>
> 3.      Only when using PPPoE, if use http://172.23.26.130/file, it's ok.
>
>
>
> However, a more interesting thing is...
>
> http://140.35.25.73/file is ok if turn on DumpIOOutput.
>
>
>
> Is it a bug of httpd?

Probably not.

> Should I report it? Or anyone can give me any
> suggestion about how to solve this issue?

Use strace to dump the full I/O buffers passed by httpd to the TCP
layer (see the text "-e write=set" in the strace man page).  If httpd
passes bad data, open a bug with the Apache Bugzilla.  Otherwise, ask
for debug help on a Linux mailing list.

(Isn't "fix the MTU" the answer to any weird networking issue?  (only
half joking))

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message