Timeout in WP_Http_Streams::request causes Fatal error abort
|Reported by:||wet||Owned by:|
WP_Http_Streams::request() tries to open a remote stream with fopen() using the default timeout. The user-supplied value per $r is not applied.
If this connection times out, the resulting $handle ist invalid. Nevertheless $handle is subsequently used as an input to stream_set_timeout().
Attached patch applies a timeout to the fopen() context and catches an invalid $handle before use.
Change History (19)
- Keywords has-patch needs-testing removed
- Resolution fixed deleted
- Status changed from closed to reopened