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

Unified Diff: net/tools/quic/quic_client.cc

Issue 15074007: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_client.h ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client.cc
diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
index 0206c3f963d84bf57065bce0eb40d48fba23883e..9ca70a3beb079f3fc7a6b7c79c1c54d323cc9d7e 100644
--- a/net/tools/quic/quic_client.cc
+++ b/net/tools/quic/quic_client.cc
@@ -63,6 +63,8 @@ QuicClient::~QuicClient() {
}
bool QuicClient::Initialize() {
+ DCHECK(!initialized_);
+
epoll_server_.set_timeout_in_us(50 * 1000);
crypto_config_.SetDefaults();
int address_family = server_address_.GetSockAddrFamily();
@@ -167,6 +169,7 @@ void QuicClient::Disconnect() {
epoll_server_.UnregisterFD(fd_);
close(fd_);
fd_ = -1;
+ initialized_ = false;
}
void QuicClient::SendRequestsAndWaitForResponse(int argc, char *argv[]) {
« no previous file with comments | « net/tools/quic/quic_client.h ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698