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 75c4bb0754643edef515dd87ff503efaf5c9a531
parent c408f9c1b32bdd3aa855208515f3b0f51ce61fcd
Author: Joris Vink <joris@coders.se>
Date:   Wed,  5 Mar 2014 11:07:21 +0100

Error out when we get an unknown NPN result.

Diffstat:
src/connection.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/connection.c b/src/connection.c @@ -164,7 +164,9 @@ kore_connection_handle(struct connection *c) NETBUF_CALL_CB_ALWAYS, NULL, http_header_recv); } else { - kore_debug("npn: received unknown protocol"); + kore_log(LOG_NOTICE, + "npn: received unknown protocol"); + return (KORE_RESULT_ERROR); } } else { c->proto = CONN_PROTO_HTTP;