Skip to content
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

Pass errors from MITM SSL sockets up to the proxy object #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbell697
Copy link

This PR passes socket errors from the SSL MITM code path up to the the top level Proxy object so they may be handled externally.

Without this fix, I was seeing ECONNRESET errors bubble up as uncaught errors which could only be handled with a process.on('uncaughtException', .....) block. I believe the source of these errors is random client disconnects when using hoxy in a cross browser testing environment via selenium.

I didn't see an obvious way to introduce tests for this in the current test suite, if I've missed something here please point me in the right direction and I'll add them.

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.

1 participant