I am using C servlets, and Kyoto cabinet to store a database.
My question is, how does G-wan call servlets ?
when compare to java servlet they have init and service destroy life cycle ? how gwan work ?
int main(int argc, char *argv[])
{
KCDB *db = kcdbnew();
if(!kcdbopen(db, "casket.kch",KCOREADER)) {
fprintf(stderr, "open error: %s\n", kcecodename(kcdbecode(db)));
}
Is it possible to open a database connection first and share it with multiple http requests ?