cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Does libcurl support signal-sent event (SSE)?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 25 Aug 2014 12:34:34 +0200 (CEST)

On Mon, 25 Aug 2014, Bruno BARRUCAND wrote:

> I have integrated libcurl in my project. It works. Now, I want to use
> Signal-Sent Event. But does libcurl support it? If it does, how to use it? I
> am using easy interface. curl_easy_perform waits there is something
> available or a timeout has elapsed. Signal-Sent Event sends data without
> "end" and without closing the connection. So for me, curl_easy_perform will
> always return on timeout elapsed. Am I right? I did tests. I do a request on
> SSE server. I see data from SSE server are read by libcurl in write_data
> (curl_easy_setopt(curl_, CURLOPT_WRITEFUNCTION, write_data)). But
> curl_easy_perform returns always error code 28 (CURLE_OPERATION_TIMEDOUT).
> So I am wondering if libcurl supports Signal-Sent Event and how to use them.

How about speaking in plain protocol terms here. What protocol are you using?
Are you just sending "protocol data" every now and then, as part of a very
long transfer?

You can for example have your read function just wait until you have data to
send.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-08-25