Correctly shutting down a websocket handler
by Robin Anil
When a client disconnects, I see that onClose is not being fired. The only
way this seems to be firing if client sents a close frame.
Is there any way to detect disconnection and immediately close all the
opened resources.
Robin
Robin Anil | Software Engineer
1 year, 3 months
Non-control characters in cookie header rejected
by Bojan Nenadovic
We have Spring Boot v2.7.11 application with the undertow web server.
I am having troubles understanding how cookie header is "treated" differently from other headers.
So, if I make curl request with the following header: --header 'Cookie: foo=ä' I am getting following exception:
j.l.IllegalArgumentException: UT000173: An invalid control character [195] was present in the cookie value or attribute
On the other hand, if I pass any other header, i.e.: --header 'foo: ä', no exception however.
What am I missing here?
1 year, 6 months