Anonymous | Login | Signup for a new account | 10-30-2024 04:15 PDT |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | closed | Product Version | 3.1.3 | ||||||
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). |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |