#20033 [NEW]: Echoing/fputsing ~11k+ of data to STDOUT causes problem
| From: | ces at vaultbbs dot com | Date: | Tue, 22 Oct 2002 21:29:48 +0000 |
| Subject: | #20033 [NEW]: Echoing/fputsing ~11k+ of data to STDOUT causes problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-23068@lists.php.net to get a copy of this message | ||
From: ces@vaultbbs.com
Operating system: Red Hat 7.3
PHP version: 4CVS-2002-10-22
PHP Bug Type: Sockets related
Bug description: Echoing/fputsing ~11k+ of data to STDOUT causes problem
I'm writing a POP3 server daemon in PHP. Incoming requests to port 110 are
routed to the POP3 server daemon by xinetd. Everything works fine if I
*Telnet* to port 110. Everything also works if I just run the script from
the command line.
However, if I connect to my server by opening a true POP3 connection (such
as from Eudora client), messages greater than about 11k cause problems
when they are downloaded. I originally suspected a POP3 implementation
problem on my part.
However, I've confirmed that if I open a clean (non-Telnet) connection to
my server and manually RETRieve the large message, the first 11k is dumped
correctly but at about 11k everything else sent by PHP is garbage.
It appears as though there were some kind of output buffer overflow. This
also appears to damage the socket. It does NOT cause the TCP/IP
connection to be terminated, but no additional output is sent and the
script becomes unresponsive to additional commands sent to it.
This *might* be related in some way to bug #19944 that I reported last
week and which I closed this morning.
This is with snap 200210220900.
--
Edit bug report at http://bugs.php.net/?id=20033&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20033&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20033&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20033&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20033&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20033&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20033&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20033&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20033&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20033&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20033&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20033&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20033&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20033&r=isapi