-
Notifications
You must be signed in to change notification settings - Fork 493
Dbeaver/pro#7442 http long polling fallback for ws event #3900
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
base: devel
Are you sure you want to change the base?
Dbeaver/pro#7442 http long polling fallback for ws event #3900
Conversation
...s/io.cloudbeaver.server/src/io/cloudbeaver/server/websockets/CBEventsLongPollingServlet.java
Outdated
Show resolved
Hide resolved
| resp.setContentType(CBConstants.APPLICATION_JSON); | ||
| WSUtils.clientGson.toJson(Map.of("events", events), resp.getWriter()); | ||
| } catch (InterruptedException e) { | ||
| Thread.currentThread().interrupt(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InterruptedException clears the thread’s interrupt flag. Restoring it preserves the interruption so higher-level code can notice it and react appropriately.
No description provided.