src/server/daemon/httprequest.c

changeset 102
136a76e293b5
parent 101
7fbcdbad0baa
child 106
b122f34ddc80
equal deleted inserted replaced
101:7fbcdbad0baa 102:136a76e293b5
52 hd->len = 0; 52 hd->len = 0;
53 hd->headers = calloc(16, sizeof(Header)); 53 hd->headers = calloc(16, sizeof(Header));
54 hd->alloc = 16; 54 hd->alloc = 16;
55 55
56 req->headers = hd; 56 req->headers = hd;
57
58 req->req_start = time(NULL);
57 } 59 }
58 60
59 void http_request_cleanup(HTTPRequest *req) { 61 void http_request_cleanup(HTTPRequest *req) {
60 // TODO: implement 62 // TODO: implement
61 } 63 }
96 } 98 }
97 NSAPIRequest *rq = pool_malloc(pool, sizeof(NSAPIRequest)); 99 NSAPIRequest *rq = pool_malloc(pool, sizeof(NSAPIRequest));
98 if(rq == NULL) { 100 if(rq == NULL) {
99 /* TODO: error */ 101 /* TODO: error */
100 } 102 }
103 rq->rq.req_start = request->req_start;
101 rq->phase = NSAPIAuthTrans; 104 rq->phase = NSAPIAuthTrans;
102 105
103 // fill session structure 106 // fill session structure
104 sn->connection = request->connection; 107 sn->connection = request->connection;
105 sn->netbuf = request->netbuf; 108 sn->netbuf = request->netbuf;

mercurial