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

Fix nzpy query hang issue: handle 'Z' after error #34

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

shabbir10july
Copy link
Contributor

JIRA: #33

Problem:When query receives an error from backend(i.e. backend response 'E'), after processing error we are not consuming response 'Z' from backend. These bytes remain on socket and causes reading incorrect data for next query and thereby causing nzpy to hang.

Solution: After handling character 'E' from backend continue listening to backend for 'Z' and consume the response.

Testing: Issue happened when running nzbatchbnr testcase or nzalchemy+nzpy testcase. After fix, ran same testcase and issue was not observed.

@abhishekjog abhishekjog merged commit 24ac11f into master Jan 11, 2021
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.

2 participants