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 a025f0fa8e71d804c45ea7369a54385c72340105
parent 4fb8a13f1ba68a8083c9e403bcb39299a52f5461
Author: Joris Vink <joris@coders.se>
Date:   Thu,  2 May 2013 15:06:26 +0200

save the http request for spdy later on

Diffstat:
includes/spdy.h | 1+
src/spdy.c | 3++-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/includes/spdy.h b/includes/spdy.h @@ -50,6 +50,7 @@ struct spdy_stream { u_int8_t flags; u_int8_t prio; + void *httpreq; struct spdy_header_block *hblock; TAILQ_ENTRY(spdy_stream) list; diff --git a/src/spdy.c b/src/spdy.c @@ -374,7 +374,8 @@ spdy_ctrl_frame_syn_stream(struct netbuf *nb) GET_HEADER(":path", &path); GET_HEADER(":method", &method); GET_HEADER(":host", &host); - if (!http_request_new(c, s, host, method, path, NULL)) { + if (!http_request_new(c, s, host, method, path, + (struct http_request **)&(s->httpreq))) { free(s->hblock->header_block); free(s->hblock); free(s);