kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit b5736ef1580233be0a284168b7e4f0c335dd79c3
parent 63dc49880714a95267f9c45d0c1c82427e26432c
Author: Joris Vink <joris@coders.se>
Date:   Thu,  3 Sep 2015 08:24:55 +0200

Unbreak ktunnel example after recent changes.

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

diff --git a/examples/ktunnel/src/ktunnel.c b/examples/ktunnel/src/ktunnel.c @@ -115,7 +115,7 @@ ktunnel_pipe_create(struct connection *c, const char *host, const char *port) return (KORE_RESULT_ERROR); } - if (!kore_connection_nonblock(fd)) { + if (!kore_connection_nonblock(fd, 1)) { close(fd); return (KORE_RESULT_ERROR); } @@ -138,7 +138,6 @@ ktunnel_pipe_create(struct connection *c, const char *host, const char *port) c->disconnect = ktunnel_pipe_disconnect; cpipe->disconnect = ktunnel_pipe_disconnect; - kore_worker_connection_add(cpipe); kore_connection_start_idletimer(cpipe); kore_platform_event_all(cpipe->fd, cpipe);