Anonymous | Login | Signup for a new account | 11-13-2024 20:57 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002120 | [Quercus] | minor | always | 10-26-07 22:18 | 10-29-07 15:05 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 3.1.4 | Product Version | 3.1.3 | ||||
Product Build | |||||||||
Summary | 0002120: fwrite() on socket doesn't write data | ||||||||
Description |
Run "nc -l -p 12345" to listen for a connection on port 12345. Then: <?php $fp = fsockopen("localhost", 12345); for ($i = 0; $i < 10; $i++) { fwrite($fp, $i . " "); sleep(1); } fwrite($fp, "\n"); fclose($fp); On vanilla PHP, you will see the numbers 0-9 appear, one per second, in the nc output, then a newline. Quercus pauses for 10 seconds and you get no output from nc whatsoever -- the data never gets sent over the socket. If you fflush() after each fwrite(), then you get the output. Likewise if you fread() (and send some data from the remote side). |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |