Skip to content

fix for false exceptions in combination with pcntl_signal - #65

Merged
jmglsn merged 3 commits into
stomp-php:masterfrom
fin-sn-de:feature/pcntl-signal-fix
Dec 18, 2016
Merged

fix for false exceptions in combination with pcntl_signal#65
jmglsn merged 3 commits into
stomp-php:masterfrom
fin-sn-de:feature/pcntl-signal-fix

Conversation

@jmglsn

@jmglsn jmglsn commented Dec 11, 2016

Copy link
Copy Markdown
Member

I created a long running consumer which makes use of pcntl_signal. When it comes to new signals while we're in stream_select this will return false and provoke a connection exception, even if there is no connection problem.

@staabm

staabm commented Dec 11, 2016

Copy link
Copy Markdown
Member

Looks good, but should be covered by a test

@jmglsn

jmglsn commented Dec 12, 2016

Copy link
Copy Markdown
Member Author

I'll try to do so - on first approach I thought it should be easy, as it turned out it isn't.

@staabm

staabm commented Dec 12, 2016

Copy link
Copy Markdown
Member

As I got more insights on when this might happen, I guess doing a unit test is not feasible.

Found this symfony commit for reference:
symfony/process@c1f405f#diff-db5a93fee2286ac3dc4dbd8e97b1a61e

I am fine to merge this without a test.

@jmglsn

jmglsn commented Dec 18, 2016

Copy link
Copy Markdown
Member Author

Had a hard time with proc_open and posix_kill. I remember that some years ago I already was messing around with the unexpected pids by proc_get_status. exec finally got me out of the additional sh pid.

@jmglsn
jmglsn merged commit aad1cab into stomp-php:master Dec 18, 2016
@jmglsn
jmglsn deleted the feature/pcntl-signal-fix branch December 18, 2016 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants