Skip to content
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

Curl engine doesn't respond for SSE events #1213

Open
IgorKey opened this issue Jun 29, 2019 · 6 comments
Open

Curl engine doesn't respond for SSE events #1213

IgorKey opened this issue Jun 29, 2019 · 6 comments
Assignees

Comments

@IgorKey
Copy link

IgorKey commented Jun 29, 2019

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

@cy6erGn0m
Copy link
Contributor

Streaming is not yet support by ios client engine

@IgorKey
Copy link
Author

IgorKey commented Jun 30, 2019

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

@e5l
Copy link
Member

e5l commented Jul 1, 2019

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

@cy6erGn0m
Copy link
Contributor

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

@IgorKey
Copy link
Author

IgorKey commented Jul 1, 2019

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

@oleg-larshin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants