Conversation:
Notices
-
MMN-o ✅⃠ (mmn)'s status on Tuesday, 11-Jul-2017 05:14:16 EDT MMN-o ✅⃠ @headcrack Since it works (times out correctly) with fread() and not fgets() it is either an issue in PHP (but it seems fgets() should behave like described) or in PEAR (which should switch to fread() or something else that breaks despite characters are still flowing in). -
MMN-o ✅⃠ (mmn)'s status on Monday, 10-Jul-2017 15:01:30 EDT MMN-o ✅⃠ PS, that server is (at least to search engine caches) a #Mastodon instance ,) -
MMN-o ✅⃠ (mmn)'s status on Monday, 10-Jul-2017 15:38:27 EDT MMN-o ✅⃠ @headcrack Now I found something. It seems that HTTP_Request2_SocketWrapper uses 'fgets' instead of 'fread':https://secure.php.net/fgets vs. http://status.hackerposse.com/url/15695 Unline fgets, fread has this in the criteria to stop reading data: "a packet becomes available or the socket timeout occurs (for network streams)" It seems as though 'fgets' is unaffected b… -
MMN-o ✅⃠ (mmn)'s status on Monday, 10-Jul-2017 16:50:03 EDT MMN-o ✅⃠ @bob @headcrack I posted this to the bug tracker for HTTP_Request2 at least: https://pear.php.net/bugs/bug.php?id=21229 -
MMN-o ✅⃠ (mmn)'s status on Tuesday, 11-Jul-2017 06:22:30 EDT MMN-o ✅⃠ @headcrack FYI I set the socket to non-blocking and used the stream_select stuff to wait for activity. Seems to do what it should. Commit is here, please review .) https://git.gnu.io/gnu/gnu-social/commit/05a9c11c476b384e5ef3f3cc83b66406fcf7a378
-