Changes in lib/http_client.c [dd7b931:286cd48]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/http_client.c
rdd7b931 r286cd48 292 292 293 293 cleanup: 294 /* Avoid g_source_remove warnings */ 295 req->inpa = 0; 296 294 297 if( req->ssl ) 295 298 ssl_disconnect( req->ssl ); … … 329 332 330 333 /* Turns out writing a proper chunked-encoding state machine is not 331 that simple. :-( */ 334 that simple. :-( I've tested this one feeding it byte by byte so 335 I hope it's solid now. */ 332 336 chunk = req->cbuf; 333 337 eos = req->cbuf + req->cblen; … … 358 362 return CR_EOF; 359 363 364 /* Wait for the whole chunk to arrive. */ 360 365 if( s + clen > eos ) 361 366 break; … … 645 650 g_free( req->request ); 646 651 g_free( req->reply_headers ); 652 g_free( req->sbuf ); 647 653 req->request = new_request; 648 654 req->request_length = strlen( new_request ); 649 655 req->bytes_read = req->bytes_written = req->inpa = 0; 650 656 req->reply_headers = req->reply_body = NULL; 657 req->sbuf = req->cbuf = NULL; 658 req->sblen = req->cblen = 0; 651 659 652 660 return FALSE;
Note: See TracChangeset
for help on using the changeset viewer.