bplatz
2016-03-10 22:08:20 UTC
I wanted to confirm the SEE behavior I'm seeing is correct.
Upon severing an SSE connection (i.e. closing browser, reloading) both
@(s/put! ...) and @(s/try-put! ...) will return true for the very next put
to the channel, and the stream remains open.
The second put! will close the connection (on-closed is called, also
s/closed? and s/drained? are true).
I was assuming the first put! after the connection is severed would fail,
not the second.
I just want to ensure I have the correct behavior, and I didn't set
something up incorrectly.
Thanks!
-Brian
Upon severing an SSE connection (i.e. closing browser, reloading) both
@(s/put! ...) and @(s/try-put! ...) will return true for the very next put
to the channel, and the stream remains open.
The second put! will close the connection (on-closed is called, also
s/closed? and s/drained? are true).
I was assuming the first put! after the connection is severed would fail,
not the second.
I just want to ensure I have the correct behavior, and I didn't set
something up incorrectly.
Thanks!
-Brian
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.