I'm reusing socket code from other sources to produce a server that listens on a port, receives a string, and returns a result code. I'm good on everything EXCEPT getting an open socket to timeout:
snippet
#!/usr/bin/php -q
<?php
error_reporting(1);
ini_set('display_errors', '1');
$socket =...