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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 case SR_BLOCK: | 530 case SR_BLOCK: |
531 if (process_requires_more_data) { | 531 if (process_requires_more_data) { |
532 // We're can't make progress until more data is available. | 532 // We're can't make progress until more data is available. |
533 return false; | 533 return false; |
534 } | 534 } |
535 // Attempt to process the data already in our buffer. | 535 // Attempt to process the data already in our buffer. |
536 break; | 536 break; |
537 case SR_EOS: | 537 case SR_EOS: |
538 // Clean close, with no error. | 538 // Clean close, with no error. |
539 read_error = 0; | 539 read_error = 0; |
540 FALLTHROUGH(); // Fall through to HandleStreamClose. | 540 RTC_FALLTHROUGH(); // Fall through to HandleStreamClose. |
541 case SR_ERROR: | 541 case SR_ERROR: |
542 *error = HandleStreamClose(read_error); | 542 *error = HandleStreamClose(read_error); |
543 return true; | 543 return true; |
544 } | 544 } |
545 } else if (process_requires_more_data) { | 545 } else if (process_requires_more_data) { |
546 // We have too much unprocessed data in our buffer. This should only | 546 // We have too much unprocessed data in our buffer. This should only |
547 // occur when a single HTTP header is longer than the buffer size (32K). | 547 // occur when a single HTTP header is longer than the buffer size (32K). |
548 // Anything longer than that is almost certainly an error. | 548 // Anything longer than that is almost certainly an error. |
549 *error = HE_OVERFLOW; | 549 *error = HE_OVERFLOW; |
550 return true; | 550 return true; |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 } | 877 } |
878 } | 878 } |
879 | 879 |
880 void | 880 void |
881 HttpBase::OnComplete(HttpError err) { | 881 HttpBase::OnComplete(HttpError err) { |
882 LOG_F(LS_VERBOSE); | 882 LOG_F(LS_VERBOSE); |
883 do_complete(err); | 883 do_complete(err); |
884 } | 884 } |
885 | 885 |
886 } // namespace rtc | 886 } // namespace rtc |
OLD | NEW |