@headcrack This is the important bits:
readLine, using fgets, socket timeout set explicitly: https://git.gnu.io/gnu/gnu-social/blob/nightly/extlib/HTTP/Request2/SocketWrapper.php#L186
stream_set_timeout when data is sent to fwrite (writing data over HTTP/HTTPS): https://git.gnu.io/gnu/gnu-social/blob/nightly/extlib/HTTP/Request2/SocketWrapper.php#L226
Both of these act _entirely_ individually from iomaster.php and should both trigger if 'fwrite' and its timeout works as it should.
($this->deadline is time()+$timeout, thus the test time()>$this->deadline will be true when time has passed)