Skip to content

TASK: More solid method to send payload to the socket#90

Merged
repejota merged 2 commits intorepejota:developfrom
dfeyer:patch-2
Apr 5, 2017
Merged

TASK: More solid method to send payload to the socket#90
repejota merged 2 commits intorepejota:developfrom
dfeyer:patch-2

Conversation

@dfeyer
Copy link
Contributor

@dfeyer dfeyer commented Mar 2, 2017

I can happens that fwrite does exit but without sending the full payload, or it can also happen that the pipe is closed or broken. With the change the logic a bit more complex but retry write operation. We need to silently ignore (@fwrite) notice/warnings from fwrite to be able to catch the broken pipe error (without the silent operator fwrite, will return a notice, and depending on the user php configuration, error handler, level, ... this can be converted to an exception or something that will skip the retry logic and our exception)

I can happens that fwrite does exit but without sending the full payload, or it can also happen that the pipe is closed or broken. With the change the logic a bit more complex but retry write operation. We need to silently ignore (@fwrite) notice/warnings from fwrite to be able to catch the broken pipe error (without the silent operator fwrite, will return a notice, and depending on the user php configuration, error handler, level, ... this can be converted to an exception or something that will skip the retry logic and our exception)
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 87.895% when pulling 9e3eb23 on dfeyer:patch-2 into d1fc1da on repejota:develop.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 87.895% when pulling 9e3eb23 on dfeyer:patch-2 into d1fc1da on repejota:develop.

@coveralls
Copy link

coveralls commented Apr 5, 2017

Coverage Status

Coverage decreased (-1.8%) to 86.667% when pulling 5abcbe2 on dfeyer:patch-2 into 614051f on repejota:develop.

@repejota repejota merged commit d19c711 into repejota:develop Apr 5, 2017
@repejota
Copy link
Owner

repejota commented Apr 5, 2017

Thanks! 😄

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