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

Connection Reading Socket Error Enhancement #1159

Merged
merged 1 commit into from Apr 16, 2019
Merged

Connection Reading Socket Error Enhancement #1159

merged 1 commit into from Apr 16, 2019

Conversation

Vic020
Copy link
Contributor

@Vic020 Vic020 commented Apr 11, 2019

Pull Request check-list

Please make sure to review and check all of these items:

  • Does $ python setup.py test pass with this change (including linting)?
  • Does travis tests pass with this change (enable it first in your forked repo and wait for the travis build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.

Description of change

  1. Added host:port error msg for "reading socket error". When getting the error of "SERVER_CLOSED_CONNECTION_ERROR", the error message can't help us to confirm which server is down at that moment.

  2. Extracted the socket.error&socket.timeout handle from two Parser class to Connection class. Make sure top class solve the lib error

…s and added "host":"port"

to Exception message for easy debug

Change-Id: Ifaa3bef0c8daf3dd2c60b143746b75a26c182a88
@andymccurdy
Copy link
Contributor

This looks good. Thanks!

@andymccurdy andymccurdy merged commit 99c5899 into redis:master Apr 16, 2019
@Vic020 Vic020 deleted the fix_connection_reading_socket_error branch April 17, 2019 03:53
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.

None yet

2 participants