Situation: the Stomp\Client is working inside the daemon, and the daemon receives TERM signal. PHP async signals option is turned on.
Right after signal the stream_select call at Connection.php:556 is returned with false result. After return from isDataOnStream the method connectionHasDataToRead will continue to wait until it reaches read timeout.
In such a case connectionHasDataToRead should immediately return false for proper application terminating.
Situation: the
Stomp\Clientis working inside the daemon, and the daemon receives TERM signal. PHP async signals option is turned on.Right after signal the
stream_selectcall at Connection.php:556 is returned withfalseresult. After return fromisDataOnStreamthe method connectionHasDataToRead will continue to wait until it reaches read timeout.In such a case
connectionHasDataToReadshould immediately return false for proper application terminating.