@ptarjan In https://github.com/facebook/hhvm/blob/master/hphp/runtime/base/socket.cpp#L69 
only `m_lastErrno` gets set. That's why it was Success (0) in the first place. 
I wasn't quite sure if this was intended or not. The other `getError()` work, because they receive the error via `setError()` (I believe).

In the end I wasn't sure if I'm supposed to change the line in the socket class in base/.