Skip to content

Cleanup in websockets, throw exception before allocating response if…#9361

Merged
normanmaurer merged 4 commits intonetty:4.1from
doom369:clenaup_websockets
Jul 16, 2019
Merged

Cleanup in websockets, throw exception before allocating response if…#9361
normanmaurer merged 4 commits intonetty:4.1from
doom369:clenaup_websockets

Conversation

@doom369
Copy link
Copy Markdown
Contributor

@doom369 doom369 commented Jul 12, 2019

… possible

Motivation:

While fixing #9359 found few places that could be patched / improved separately.

Modification:

On handshake response generation - throw exception before allocating response objects if request is invalid.

@netty-bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@normanmaurer
Copy link
Copy Markdown
Member

@netty-bot test this please

@doom369
Copy link
Copy Markdown
Contributor Author

doom369 commented Jul 13, 2019

@normanmaurer are you aware of this error:

[ERROR] Failed to execute goal me.normanmaurer.maven.autobahntestsuite:autobahntestsuite-maven-plugin:0.1.5:fuzzingclient (default) on project netty-testsuite-autobahn: Unable to start server: InvocationTargetException: Address already in use -> [Help 1]

?

@normanmaurer
Copy link
Copy Markdown
Member

@netty-bot test this please

@normanmaurer normanmaurer requested a review from slandelle July 15, 2019 13:33
@normanmaurer normanmaurer added this to the 4.1.38.Final milestone Jul 16, 2019
@normanmaurer normanmaurer merged commit cd824e4 into netty:4.1 Jul 16, 2019
normanmaurer pushed a commit that referenced this pull request Jul 16, 2019
…possible (#9361)

Motivation:

While fixing #9359 found few places that could be patched / improved separately.

Modification:

On handshake response generation - throw exception before allocating response objects if request is invalid.

Result:

No more leaks when exception is thrown.
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.

4 participants