Skip to content

Using the client to decode Server Sent Events misbehaves on both JVM and JS #6694

@Koroeskohr

Description

@Koroeskohr

Re: https://discord.com/channels/632277896739946517/632286375311573032/1020733581703786608

Repro: https://gist.github.com/Koroeskohr/facf22a21bb955d1df6cac384ac811bc
scala-cli test https://gist.github.com/Koroeskohr/facf22a21bb955d1df6cac384ac811bc

As discussed with @armanbilge, we observed on both JVM and JS two different wrong behaviours, the JVM will throw a ClosedChannelException, the JS runtime will hang after the first event, when the source advertises an event every 2 seconds, observable through:
$ curl -N --location --compressed --request GET 'https://sse.dev/test' --header 'Accept: text/event-stream'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDetermined to be a bug in http4smodule:core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions