[php-src] PR #25152: Fix GH-25148: Blocking socket fread() reports timed_out on Windows after returning buffered data

From: Date: Mon, 02 Nov 2026 14:06:09 +0000
Subject: [php-src] PR #25152: Fix GH-25148: Blocking socket fread() reports timed_out on Windows after returning buffered data
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40223@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25152 Author: jack-worman Fixes #25148. > Since #9676 (bug #51056), a blocking socket read that has data buffered only checks for more > without waiting. Windows has no MSG_DONTWAIT, so that check is a > zero-timeout poll, and when it found nothing, timeout_event was set > and stream_get_meta_data() reported > timed_out, even though fread() > returned data. This clears timeout_event there, keeping the early > return so recv() isn't called.

« previous php.git-pulls (#40223) next »