socket_set_timeout DOES NOT work for sockets created with socket_create or socket_accept. Use socket_set_option instead.
Merge pull request #45 from cnxzcxy/master

php api:use socket_set_option instead of socket_set_timeout