Home | History | Annotate | Download | only in proxy

Lines Matching full:root

323 /* root->socket is connected to the proxy server. while
341 ProxyConnection root[1];
360 rewrite_connection_free( ProxyConnection* root )
362 RewriteConnection* conn = (RewriteConnection*)root;
369 proxy_connection_done(root);
377 HttpService* service = (HttpService*) conn->root->service;
378 ProxyConnection* root = conn->root;
383 if (socket_connect( root->socket, &service->server_addr ) < 0) {
385 PROXY_LOG("%s: connecting", conn->root->name);
388 PROXY_LOG("%s: cannot connect to proxy: %s", root->name, errno_str);
393 PROXY_LOG("%s: immediate connection", root->name);
405 ProxyConnection* root = conn->root;
409 root->name, errno_str);
413 root->ev_func( root->ev_opaque, slirp_1, PROXY_EVENT_CONNECTED );
423 ProxyConnection* root = conn->root;
426 ret = proxy_connection_receive_line(root, conn->slirp_fd);
429 char* line = root->str->s;
438 root->name, line);
444 root->name, line);
450 root->name, line);
460 proxy_connection_rewind(root);
469 ProxyConnection* root = conn->root;
472 ret = proxy_connection_receive_line( root, root->socket );
476 char* line = stralloc_cstr( root->str );
485 root->name, line);
491 root->name, line);
499 proxy_connection_rewind(root);
510 ProxyConnection* root = conn->root;
514 stralloc_t* str = root->str;
516 ret = proxy_connection_receive_line(root, fd);
540 PROXY_LOG("%s: can't parse header '%s'", root->name, line);
557 ProxyConnection* root = conn->root;
558 HttpService* service = (HttpService*) root->service;
560 stralloc_t* str = root->str;
563 proxy_connection_rewind(conn->root);
569 PROXY_LOG("%s: uh oh, not Host: in request ?", root->name);
576 proxy_connection_rewind(root);
594 ProxyConnection* root = conn->root;
595 stralloc_t* str = root->str;
598 proxy_connection_rewind(root);
614 ProxyConnection* root = conn->root;
626 proxy_connection_rewind(root);
648 PROXY_LOG("%s: bad content length: %s", root->name, content_length);
675 root->name);
684 root->name, conn->body_length,
687 proxy_connection_rewind(root);
696 ProxyConnection* root = conn->root;
697 stralloc_t* str = root->str;
708 D("%s: INTERNAL ERROR: SHOULDN'T BE THERE", root->name);
734 D("%s: waiting chunk header", root->name);
737 ret = proxy_connection_receive_line(root, fd);
746 root->name, line);
751 root->name, length);
798 root->name, current);
805 ret = proxy_connection_receive(root, fd, wanted);
813 conn->body_total += root->str_recv;
815 root->name, conn->body_total);
820 avail = root->str_recv;
830 root->name, conn->chunk_length);
843 root->name, conn->body_total);
863 ProxyConnection* root = conn->root;
864 stralloc_t* str = root->str;
868 ret = proxy_connection_send(root, fd);
870 int pos = root->str_pos;
874 root->str_pos = 0;
877 conn->body_sent += root->str_sent;
887 root->name, conn->body_sent);
891 root->name, conn->body_is_closed,
901 rewrite_connection_select( ProxyConnection* root,
904 RewriteConnection* conn = (RewriteConnection*)root;
906 int proxy = root->socket;
954 rewrite_connection_poll( ProxyConnection* root,
957 RewriteConnection* conn = (RewriteConnection*)root;
960 int proxy = root->socket;
968 PROXY_LOG("%s: connected to proxy", root->name);
978 D("%s: socket pair created", root->name);
988 PROXY_LOG("%s: request first line ok", root->name);
998 PROXY_LOG("%s: request headers ok", root->name);
1009 ret = proxy_connection_send(root, proxy);
1015 root->name);
1019 root->name);
1034 root->name);
1044 PROXY_LOG("%s: reply first line ok", root->name);
1054 PROXY_LOG("%s: reply headers ok", root->name);
1065 ret = proxy_connection_send(conn->root, slirp);
1071 root->name);
1075 root->name);
1090 PROXY_LOG("%s: closing connection", root->name);
1094 root->name);
1105 proxy_connection_free(root, 0, PROXY_EVENT_NONE);
1128 proxy_connection_init( conn->root, s, address, service->root,
1134 rewrite_connection_free( conn->root );
1138 return conn->root;