Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/4944#issuecomment-81267408
I've updated this with a new commit that adds another layer of `try-catch`
blocks to handle errors when reading the status code. I also made a slight
change to how we handle 404 errors: we now attempt to close the error stream
and only call `disconnect()` as a last-resort in case the error stream cleanup
fails. This allows us to continue to benefit from HTTP keep-alive / persistent
connections even when errors occur (I verified this behavior using Wireshark)>
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]