lkml.org 
[lkml]   [1998]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectstrange tcp problem with 2.1.127
I just noticed a strange problem running a script from inetd under 2.1.127.

I have a status script which can be checked from a web browser. It is
started from inetd with:

8888 stream tcp nowait root /usr/local/sbin/status status

A simplified version of it:

#!/bin/sh
#
echo "HTTP/1.1 200 OK"
echo "Date: " `date`
echo "Server: status "
echo "Connection: close"
echo "Content-type: text/plain"
echo
uptime
echo

This works fine with various 2.0 kernels and other operating systems such
as SCO and Solaris.

On a test system with a 2.0.35 and a 2.0.131 kernel. It works perfectly
under 2.0.35 and fails under 2.0.131..

What I'm seeing is some sort of data corruption. Netscape for example
displays a dialog box saying:

A network error occurred while Netscape was receiving data.
(Network error: Connection reset by peer.)

Using something like snarf or urlget what I see is a file that has the
correct data (sometimes) but then has a couple of k worth of NULL's
appended.

--
Stuart Lynne <sl@fireplug.net> 604-461-7532 <http://www.fireplug.net>
PGP Fingerprint: 28 E2 A0 15 99 62 9A 00 88 EC A3 EE 2D 1C 15 68

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.025 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site