Exemplo n.º 1
0
void
kore_connection_check_idletimer(u_int64_t now, struct connection *c)
{
	u_int64_t	d;

	d = now - c->idle_timer.start;
	if (d >= c->idle_timer.length) {
		kore_debug("%p idle for %d ms, expiring", c, d);
		if (c->proto == CONN_PROTO_SPDY)
			spdy_session_teardown(c, SPDY_SESSION_ERROR_OK);
		else
			kore_connection_disconnect(c);
	}
}
Exemplo n.º 2
0
int
serve_spdyreset(struct http_request *req)
{
    spdy_session_teardown(req->owner, SPDY_SESSION_ERROR_OK);
    return (KORE_RESULT_OK);
}