| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1188 LOG_J(LS_WARNING, port_) << "Received TURN allocate error response" | 1188 LOG_J(LS_WARNING, port_) << "Received TURN allocate error response" |
| 1189 << ", id=" << rtc::hex_encode(id()) | 1189 << ", id=" << rtc::hex_encode(id()) |
| 1190 << ", code=" << error_code->code() | 1190 << ", code=" << error_code->code() |
| 1191 << ", rtt=" << Elapsed(); | 1191 << ", rtt=" << Elapsed(); |
| 1192 port_->OnAllocateError(); | 1192 port_->OnAllocateError(); |
| 1193 } | 1193 } |
| 1194 } | 1194 } |
| 1195 | 1195 |
| 1196 void TurnAllocateRequest::OnTimeout() { | 1196 void TurnAllocateRequest::OnTimeout() { |
| 1197 LOG_J(LS_WARNING, port_) << "TURN allocate request " | 1197 LOG_J(LS_WARNING, port_) << "TURN allocate request " |
| 1198 << rtc::hex_encode(id()) << " timout"; | 1198 << rtc::hex_encode(id()) << " timeout"; |
| 1199 port_->OnAllocateRequestTimeout(); | 1199 port_->OnAllocateRequestTimeout(); |
| 1200 } | 1200 } |
| 1201 | 1201 |
| 1202 void TurnAllocateRequest::OnAuthChallenge(StunMessage* response, int code) { | 1202 void TurnAllocateRequest::OnAuthChallenge(StunMessage* response, int code) { |
| 1203 // If we failed to authenticate even after we sent our credentials, fail hard. | 1203 // If we failed to authenticate even after we sent our credentials, fail hard. |
| 1204 if (code == STUN_ERROR_UNAUTHORIZED && !port_->hash().empty()) { | 1204 if (code == STUN_ERROR_UNAUTHORIZED && !port_->hash().empty()) { |
| 1205 LOG_J(LS_WARNING, port_) << "Failed to authenticate with the server " | 1205 LOG_J(LS_WARNING, port_) << "Failed to authenticate with the server " |
| 1206 << "after challenge."; | 1206 << "after challenge."; |
| 1207 port_->OnAllocateError(); | 1207 port_->OnAllocateError(); |
| 1208 return; | 1208 return; |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 } else { | 1580 } else { |
| 1581 state_ = STATE_UNBOUND; | 1581 state_ = STATE_UNBOUND; |
| 1582 port_->FailAndPruneConnection(ext_addr_); | 1582 port_->FailAndPruneConnection(ext_addr_); |
| 1583 } | 1583 } |
| 1584 } | 1584 } |
| 1585 void TurnEntry::OnChannelBindTimeout() { | 1585 void TurnEntry::OnChannelBindTimeout() { |
| 1586 state_ = STATE_UNBOUND; | 1586 state_ = STATE_UNBOUND; |
| 1587 port_->FailAndPruneConnection(ext_addr_); | 1587 port_->FailAndPruneConnection(ext_addr_); |
| 1588 } | 1588 } |
| 1589 } // namespace cricket | 1589 } // namespace cricket |
| OLD | NEW |