thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [thrift] theilig opened a new pull request #2134: THRIFT-5199: Fix infinite loop writing to closed TSocket in PHP
Date Fri, 08 May 2020 06:26:47 GMT

theilig opened a new pull request #2134:

   Client: php
   <!-- Explain the changes in the pull request below: -->
   When you call fwrite in PHP with a handle that has been closed by peer the function will
return 0 bytes written (rather than false to indicate an error).
   This causes an infinite loop today because the code assumes 0 only means a temporary failure
to write, rather than a permanent one. 
   This change adds a check to for a closed socket when 0 bytes are written
   <!-- We recommend you review the checklist/tips before submitting a pull request. -->
   - [ X] Did you create an [Apache Jira](
ticket?  (not required for trivial changes)
   - [ X] If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN:
describe my issue"?
   - [ X] Did you squash your changes to a single commit?  (not required, but preferred)
   - [ X] Did you do your best to avoid breaking changes?  If one was needed, did you label
the Jira ticket with "Breaking-Change"?
   - [ ] If your change does not involve any code, include `[skip ci]` anywhere in the commit
message to free up build resources.
     The Contributing Guide at:
     has more details and tips for committing properly.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

View raw message