SseEventSink is NOT closed even client closed the connection

37 views
Skip to first unread message

Harry Chan

unread,
Jun 24, 2018, 10:15:15 AM6/24/18
to Payara Forum
Hi Payara team,

I found that the SseEventSink is NOT closed even client closed the connection.

The testing steps could be found it README.md as below:
  1. run the application `gradlew clean build runApp`
  2. go to http://localhost:8080/payara-sse/
  3. click the "Subscribe" button, then you can see the server log will show subscription is done
  4. open the other browser and repeat the steps 2 and 3
  5. click the "Increase Counter" button, you will see the counter in the BOTH web page will be increased and there is a log message in server console too
  6. now click the "Unsubscribe" button in either one web page, **there is NO log printed in the server side which is NOT expected**
  7. Go to the web page which is still subscribing the stream and click the "Increase Counter" button
  8. So, the counter in the page is still subscribing the stream will be updated; the counter in the page is NOT subscribing the stream will remain. It show that the "unsubscribe" is working and the stream connection should be closed by client side
  9. For double check, you could go to http://localhost:8080/payara-sse/api/counter/event-status to check if there is any event stream is closed (true means closed)
Anyone has clue?

Thank you.

Ondro Mihályi

unread,
Jun 25, 2018, 3:10:22 AM6/25/18
to Harry Chan, Payara Forum
Hi,

It may be a bug. Could you raise this as an issue on the github issue tracker?

Ondro

Dňa ne 24. 6. 2018, 15:15 Harry Chan <hei123...@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/6628c915-a8d0-4c54-af37-810e1e7c832d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Harry Chan

unread,
Jun 25, 2018, 10:48:28 AM6/25/18
to Payara Forum
Issue is created in https://github.com/payara/Payara/issues/2897.

Thank you. :)
Reply all
Reply to author
Forward
0 new messages