Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[2.1][Process] Disable exception on stream_select timeout #8272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

romainneutron
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #8231
License MIT

@@ -293,12 +293,14 @@ public function start($callback = null)
$n = @stream_select($r, $w, $e, 0, ceil(static::TIMEOUT_PRECISION * 1E6));

if (false === $n) {
if ($this->hasSystemCallBeenInterrupted()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if a system call has been interrupted, forget about it, let's try again

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romainneutron if these comments are meant to explain the code, they should be added as PHP comments in the code instead. People reading the code won't see the PR comments

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @stof

@romainneutron
Copy link
Contributor Author

Added inline comments

@fabpot
Copy link
Member

fabpot commented Jun 13, 2013

Sorry to bother you again, but 2.1 is not maintained anymore. So, the PR should be done on 2.2.

@romainneutron
Copy link
Contributor Author

woops, :) closed in favor of #8274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants