Skip to content

Bug: Waiting for socket after receiving OS signals #117

Description

@edefimov

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions