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 for IBM websockets connection chunking issue #12

Merged
merged 2 commits into from
Mar 13, 2019
Merged

Conversation

JamesBirdsall
Copy link
Contributor

If we cannot validate the websocket reply, reset the buffer so existing input is unconsumed and wait for another call with more input. If the response is actually truncated or erroneous, then the open timeout higher up in the stack will eventually fire.

@@ -275,8 +280,13 @@ private boolean sendToUnderlyingInput() {
private void processInput() throws TransportException {
switch (webSocketState) {
case PN_WS_CONNECTING:
inputBuffer.mark();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the issue. Can you please add a unit test which verifies the fix?

@JamesBirdsall JamesBirdsall merged commit e966990 into master Mar 13, 2019
@JamesBirdsall JamesBirdsall deleted the chunking branch March 13, 2019 19:07
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