Mercurial > urweb
diff include/urweb/urweb_cpp.h @ 1931:1a04b1edded2
Fix regression in http.c for long-polling connections; add lazy initialization of database connections, to avoid the overhead in handlers that don't use SQL
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Wed, 11 Dec 2013 14:57:54 -0500 |
parents | 52e88e139b25 |
children | 98895243b5b6 |
line wrap: on
line diff
--- a/include/urweb/urweb_cpp.h Wed Dec 11 11:06:08 2013 -0500 +++ b/include/urweb/urweb_cpp.h Wed Dec 11 14:57:54 2013 -0500 @@ -37,6 +37,7 @@ void uw_set_headers(struct uw_context *, char *(*get_header)(void *, const char *), void *get_header_data); void uw_set_env(struct uw_context *, char *(*get_env)(void *, const char *), void *get_env_data); failure_kind uw_begin(struct uw_context *, char *path); +void uw_ensure_transaction(struct uw_context *); failure_kind uw_begin_onError(struct uw_context *, char *msg); void uw_login(struct uw_context *); void uw_commit(struct uw_context *);