I have PHP SSL socket open using fsockopen("ssl://mysite.com") etc.
Then I have this:
$this->header = fgets($fh, 1024);
I added showing runtime code above and below of this line and there is a lot of difference and this code causes error.
After that line:
These 2 values are output of microtime
How can I make my code not to wait for fgets if there is no 1024 byte available to read?