Пример #1
0
/* Request was completed succesfully. */
int
request_done(struct http_request *req)
{
	struct rstate	*state = req->hdlr_extra;

	kore_pgsql_cleanup(&state->sql);
	http_response(req, 200, NULL, 0);

	return (HTTP_STATE_COMPLETE);
}
Пример #2
0
void
connection_del(struct connection *c)
{
	printf("%p: disconnecting\n", (void *)c);

	if (c->hdlr_extra != NULL)
		kore_pgsql_cleanup(c->hdlr_extra);

	kore_free(c->hdlr_extra);
	c->hdlr_extra = NULL;
}