OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <dirent.h> | 5 #include <dirent.h> |
6 #include <netinet/tcp.h> // For TCP_NODELAY | 6 #include <netinet/tcp.h> // For TCP_NODELAY |
7 #include <sys/socket.h> | 7 #include <sys/socket.h> |
8 #include <sys/types.h> | 8 #include <sys/types.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 #include <openssl/err.h> | 10 #include <openssl/err.h> |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 SSL_CTX_set_mode(state->ssl_ctx, SSL_MODE_RELEASE_BUFFERS); | 246 SSL_CTX_set_mode(state->ssl_ctx, SSL_MODE_RELEASE_BUFFERS); |
247 #endif | 247 #endif |
248 | 248 |
249 // Proper methods to disable compression don't exist until 0.9.9+. For now | 249 // Proper methods to disable compression don't exist until 0.9.9+. For now |
250 // we must manipulate the stack of compression methods directly. | 250 // we must manipulate the stack of compression methods directly. |
251 if (g_proxy_config.ssl_disable_compression_) { | 251 if (g_proxy_config.ssl_disable_compression_) { |
252 STACK_OF(SSL_COMP) *ssl_comp_methods = SSL_COMP_get_compression_methods(); | 252 STACK_OF(SSL_COMP) *ssl_comp_methods = SSL_COMP_get_compression_methods(); |
253 int num_methods = sk_SSL_COMP_num(ssl_comp_methods); | 253 int num_methods = sk_SSL_COMP_num(ssl_comp_methods); |
254 int i; | 254 int i; |
255 for (i = 0; i < num_methods; i++) { | 255 for (i = 0; i < num_methods; i++) { |
256 sk_SSL_COMP_delete(ssl_comp_methods, i); | 256 static_cast<void>(sk_SSL_COMP_delete(ssl_comp_methods, i)); |
257 } | 257 } |
258 } | 258 } |
259 } | 259 } |
260 | 260 |
261 SSL* spdy_new_ssl(SSL_CTX* ssl_ctx) { | 261 SSL* spdy_new_ssl(SSL_CTX* ssl_ctx) { |
262 SSL* ssl = SSL_new(ssl_ctx); | 262 SSL* ssl = SSL_new(ssl_ctx); |
263 PrintSslError(); | 263 PrintSslError(); |
264 | 264 |
265 SSL_set_accept_state(ssl); | 265 SSL_set_accept_state(ssl); |
266 PrintSslError(); | 266 PrintSslError(); |
(...skipping 2886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3153 for (unsigned int i = 0; i < sm_worker_threads_.size(); ++i) { | 3153 for (unsigned int i = 0; i < sm_worker_threads_.size(); ++i) { |
3154 sm_worker_threads_[i]->Join(); | 3154 sm_worker_threads_[i]->Join(); |
3155 } | 3155 } |
3156 return 0; | 3156 return 0; |
3157 } | 3157 } |
3158 usleep(1000*10); // 10 ms | 3158 usleep(1000*10); // 10 ms |
3159 } | 3159 } |
3160 | 3160 |
3161 return 0; | 3161 return 0; |
3162 } | 3162 } |
OLD | NEW |