kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 948dafb19c7ac3264bd710dbf8ce1b2fd9e4c328
parent fd52d4c39d8b1f2ab6c86e96e9fc82ce0beafca1
Author: Joris Vink <joris@coders.se>
Date:   Fri, 27 Nov 2015 18:26:30 +0100

Unbreak SSE example after latest changes.

Diffstat:
examples/sse/src/sse.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/sse/src/sse.c b/examples/sse/src/sse.c @@ -96,7 +96,6 @@ subscribe(struct http_request *req) /* Allocate a state to be carried by our connection. */ state = kore_malloc(sizeof(*state)); - state->stream = req->stream; req->owner->hdlr_extra = state; /* Now start a timer to send a ping back every 10 second. */ @@ -133,7 +132,7 @@ sse_send(struct connection *c, void *data, size_t len) return; /* Queue outgoing data now. */ - net_send_queue(c, data, len, state->stream, NETBUF_LAST_CHAIN); + net_send_queue(c, data, len); net_send_flush(c); }