Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Side by Side Diff: webrtc/base/openssladapter.cc

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2008 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2008 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 AsyncSocketAdapter::OnWriteEvent(this); 397 AsyncSocketAdapter::OnWriteEvent(this);
398 #endif 398 #endif
399 break; 399 break;
400 400
401 case SSL_ERROR_WANT_READ: 401 case SSL_ERROR_WANT_READ:
402 LOG(LS_VERBOSE) << " -- error want read"; 402 LOG(LS_VERBOSE) << " -- error want read";
403 struct timeval timeout; 403 struct timeval timeout;
404 if (DTLSv1_get_timeout(ssl_, &timeout)) { 404 if (DTLSv1_get_timeout(ssl_, &timeout)) {
405 int delay = timeout.tv_sec * 1000 + timeout.tv_usec/1000; 405 int delay = timeout.tv_sec * 1000 + timeout.tv_usec/1000;
406 406
407 Thread::Current()->PostDelayed(delay, this, MSG_TIMEOUT, 0); 407 Thread::Current()->PostDelayed(FROM_HERE, delay, this, MSG_TIMEOUT, 0);
408 } 408 }
409 break; 409 break;
410 410
411 case SSL_ERROR_WANT_WRITE: 411 case SSL_ERROR_WANT_WRITE:
412 break; 412 break;
413 413
414 case SSL_ERROR_ZERO_RETURN: 414 case SSL_ERROR_ZERO_RETURN:
415 default: 415 default:
416 LOG(LS_WARNING) << "ContinueSSL -- error " << code; 416 LOG(LS_WARNING) << "ContinueSSL -- error " << code;
417 return (code != 0) ? code : -1; 417 return (code != 0) ? code : -1;
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 if (ssl_mode_ == SSL_MODE_DTLS) { 957 if (ssl_mode_ == SSL_MODE_DTLS) {
958 SSL_CTX_set_read_ahead(ctx, 1); 958 SSL_CTX_set_read_ahead(ctx, 1);
959 } 959 }
960 960
961 return ctx; 961 return ctx;
962 } 962 }
963 963
964 } // namespace rtc 964 } // namespace rtc
965 965
966 #endif // HAVE_OPENSSL_SSL_H 966 #endif // HAVE_OPENSSL_SSL_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698