| Index: net/tools/quic/quic_client.cc
|
| diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
|
| index b8472d041ed5ba812d65a5a2b0e0a1f0ad20fcf7..6a4c3127c7c7ddb3de808dbe4f9b0c9c510e9f10 100644
|
| --- a/net/tools/quic/quic_client.cc
|
| +++ b/net/tools/quic/quic_client.cc
|
| @@ -498,16 +498,6 @@ QuicPacketReader* QuicClient::CreateQuicPacketReader() {
|
| return nullptr;
|
| }
|
|
|
| -int QuicClient::ReadPacket(char* buffer,
|
| - int buffer_len,
|
| - IPEndPoint* server_address,
|
| - IPAddress* client_ip) {
|
| - return QuicSocketUtils::ReadPacket(
|
| - GetLatestFD(), buffer, buffer_len,
|
| - overflow_supported_ ? &packets_dropped_ : nullptr, client_ip,
|
| - server_address);
|
| -}
|
| -
|
| bool QuicClient::ReadAndProcessPacket() {
|
| // Allocate some extra space so we can send an error if the server goes over
|
| // the limit.
|
| @@ -516,7 +506,10 @@ bool QuicClient::ReadAndProcessPacket() {
|
| IPEndPoint server_address;
|
| IPAddress client_ip;
|
|
|
| - int bytes_read = ReadPacket(buf, arraysize(buf), &server_address, &client_ip);
|
| + int bytes_read = QuicSocketUtils::ReadPacket(
|
| + GetLatestFD(), buf, arraysize(buf),
|
| + overflow_supported_ ? &packets_dropped_ : nullptr, &client_ip,
|
| + &server_address);
|
|
|
| if (bytes_read < 0) {
|
| return false;
|
|
|