Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make Mojo::Reactor::Poll a little faster and reliable
- Loading branch information
Showing
3 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f3a06f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been suffering undef warning on ua request until v5.77, which was once mentioned on ML before.
This commit seems like fix it. Thank you!
https://groups.google.com/forum/#!topic/mojolicious/V3qeMVmMGp8
For reference, It has been very rare like occuring once among hundreds of Mojo::UserAgent requests
and was because $handle might be closed inside the same 'for' loop and fileno returns undef.
Couldn't figure out how to easily reproduce, though.
f3a06f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎