OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 state_ = SSL_CONNECTED; | 821 state_ = SSL_CONNECTED; |
822 StreamAdapterInterface::OnEvent(stream(), SE_OPEN|SE_READ|SE_WRITE, 0); | 822 StreamAdapterInterface::OnEvent(stream(), SE_OPEN|SE_READ|SE_WRITE, 0); |
823 break; | 823 break; |
824 | 824 |
825 case SSL_ERROR_WANT_READ: { | 825 case SSL_ERROR_WANT_READ: { |
826 LOG(LS_VERBOSE) << " -- error want read"; | 826 LOG(LS_VERBOSE) << " -- error want read"; |
827 struct timeval timeout; | 827 struct timeval timeout; |
828 if (DTLSv1_get_timeout(ssl_, &timeout)) { | 828 if (DTLSv1_get_timeout(ssl_, &timeout)) { |
829 int delay = timeout.tv_sec * 1000 + timeout.tv_usec/1000; | 829 int delay = timeout.tv_sec * 1000 + timeout.tv_usec/1000; |
830 | 830 |
831 Thread::Current()->PostDelayed(delay, this, MSG_TIMEOUT, 0); | 831 Thread::Current()->PostDelayed(RTC_FROM_HERE, delay, this, |
| 832 MSG_TIMEOUT, 0); |
832 } | 833 } |
833 } | 834 } |
834 break; | 835 break; |
835 | 836 |
836 case SSL_ERROR_WANT_WRITE: | 837 case SSL_ERROR_WANT_WRITE: |
837 LOG(LS_VERBOSE) << " -- error want write"; | 838 LOG(LS_VERBOSE) << " -- error want write"; |
838 break; | 839 break; |
839 | 840 |
840 case SSL_ERROR_ZERO_RETURN: | 841 case SSL_ERROR_ZERO_RETURN: |
841 default: | 842 default: |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 return true; | 1194 return true; |
1194 } | 1195 } |
1195 } | 1196 } |
1196 | 1197 |
1197 return false; | 1198 return false; |
1198 } | 1199 } |
1199 | 1200 |
1200 } // namespace rtc | 1201 } // namespace rtc |
1201 | 1202 |
1202 #endif // HAVE_OPENSSL_SSL_H | 1203 #endif // HAVE_OPENSSL_SSL_H |
OLD | NEW |