Home | History | Annotate | Download | only in examples

Lines Matching full:glob_opt

151   if(glob_opt.ignore_rst_stream
159 glob_opt.ignore_rst_stream = false;
162 glob_opt.ignore_rst_stream = false;
301 ++glob_opt.streams_opened;
303 PRINT_INFO2("opening stream: str open %i; %s", glob_opt.streams_opened, proxy->url);
308 glob_opt.ignore_rst_stream = NULL==spdylay_session_get_stream_user_data(session, frame->rst_stream.stream_id);
311 glob_opt.ignore_rst_stream,
375 glob_opt.spdy_data_received = true;
398 --glob_opt.streams_opened;
400 PRINT_INFO2("closing stream: str opened %i; remove proxy %i", glob_opt.streams_opened, proxy->id);
459 glob_opt.spdy_data_received = true;
746 ssl = SSL_new(glob_opt.ssl_ctx);
754 glob_opt.spdy_proto_version = 0;
756 if(rv <= 0 || (glob_opt.spdy_proto_version != 3 && glob_opt.spdy_proto_version != 2))
765 glob_opt.spdy_proto_version = 3;
781 PRINT_INFO2("[INFO] SPDY protocol version = %d\n", glob_opt.spdy_proto_version);
782 rv = spdylay_session_client_new(&(connection->session), glob_opt.spdy_proto_version,
851 if(glob_opt.only_proxy)
853 connection = glob_opt.spdy_connection;
857 connection = glob_opt.spdy_connections_head;
873 DLL_insert(glob_opt.spdy_connections_head, glob_opt.spdy_connections_tail, connection);
874 glob_opt.total_spdy_connections++;
877 connection = glob_opt.spdy_connection;
922 if(NULL != glob_opt.spdy_connection)
924 spdy_ctl_poll(&(fds[*real_size]), glob_opt.spdy_connection);
928 glob_opt.streams_opened -= glob_opt.spdy_connection->streams_opened;
930 for(proxy = glob_opt.spdy_connection->proxies_head; NULL != proxy; proxy=proxy->next)
933 DLL_remove(glob_opt.spdy_connection->proxies_head, glob_opt.spdy_connection->proxies_tail, proxy);
936 spdy_free_connection(glob_opt.spdy_connection);
937 glob_opt.spdy_connection = NULL;
941 fds[*real_size].fd = glob_opt.spdy_connection->fd;
942 connections[*real_size] = glob_opt.spdy_connection;
947 connection = glob_opt.spdy_connections_head;
951 assert(!glob_opt.only_proxy);
956 glob_opt.streams_opened -= connection->streams_opened;
957 DLL_remove(glob_opt.spdy_connections_head, glob_opt.spdy_connections_tail, connection);
958 glob_opt.total_spdy_connections--;
999 if(NULL != glob_opt.spdy_connection)
1003 except_fd_set, glob_opt.spdy_connection);
1006 glob_opt.streams_opened -= glob_opt.spdy_connection->streams_opened;
1009 spdy_free_connection(glob_opt.spdy_connection);
1010 glob_opt.spdy_connection = NULL;
1014 connections[*real_size] = glob_opt.spdy_connection;
1016 if(maxfd < glob_opt.spdy_connection->fd) maxfd = glob_opt.spdy_connection->fd;
1020 connection = glob_opt.spdy_connections_head;
1024 assert(!glob_opt.only_proxy);
1032 glob_opt.streams_opened -= connection->streams_opened;
1033 DLL_remove(glob_opt.spdy_connections_head, glob_opt.spdy_connections_tail, connection);
1034 glob_opt.total_spdy_connections--;
1079 glob_opt.streams_opened -= connections[i]->streams_opened;
1080 if(connections[i] == glob_opt.spdy_connection)
1082 glob_opt.spdy_connection = NULL;
1086 DLL_remove(glob_opt.spdy_connections_head, glob_opt.spdy_connections_tail, connections[i]);
1087 glob_opt.total_spdy_connections--;
1127 glob_opt.streams_opened -= connections[i]->streams_opened;
1128 if(connections[i] == glob_opt.spdy_connection)
1130 glob_opt.spdy_connection = NULL;
1134 DLL_remove(glob_opt.spdy_connections_head, glob_opt.spdy_connections_tail, connections[i]);
1135 glob_opt.total_spdy_connections--;