Ktor: Curl engine doesn't respond for SSE events

Created on 29 Jun 2019  路  6Comments  路  Source: ktorio/ktor

Ktor Version

1.2.2

Ktor Engine Used(client or server and name)

Ktor curl client - io.ktor:ktor-client-curl-mingwx64:1.2.2

JVM Version, Operating System and Relevant Context

Kotlin Native 1.3.40

Feedback

Can't get even status code from sse requests. For instance, the same code works fine in kotlin JVM with CIO http engine Curl native engine block streaming compatibilities
Source code here

On the server side, I have this one https://ktor.io/samples/other/sse.html

when i close the connection from server. All messages written by the server come

enhancement

All 6 comments

Streaming is not yet support by ios client engine

Why iOS? I鈥檓 working at the desktop solution. Target is mingwx64 or linuxx64. Curl distrib works fine with SSE but Ktor curl client - not

Hi @IgorKey, thanks for the report. We'll investigate the reason.

Sorry, I wanted to say native. We simply read the whole result at once in all native backends for now.

Oh, so sad... Do you know any workaround for this case?

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Was this page helpful?
0 / 5 - 0 ratings