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

Unified Diff: net/spdy/spdy_stream.cc

Issue 11689002: Fix for spdy cancelling ServerBoundCertServiceRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_stream.cc
diff --git a/net/spdy/spdy_stream.cc b/net/spdy/spdy_stream.cc
index aeb370e4fddf5a3ab5dc24c3dbfcfdb1a871ffbd..c134ef84c750db29533dff645d5de9f02b57b312 100644
--- a/net/spdy/spdy_stream.cc
+++ b/net/spdy/spdy_stream.cc
@@ -161,6 +161,11 @@ SpdyFrame* SpdyStream::ProduceNextFrame() {
}
SpdyStream::~SpdyStream() {
+ if (domain_bound_cert_request_handle_ != NULL) {
+ ServerBoundCertService* sbc_service = session_->GetServerBoundCertService();
+ sbc_service->CancelRequest(domain_bound_cert_request_handle_);
+ domain_bound_cert_request_handle_ = NULL;
Ryan Hamilton 2012/12/28 16:30:53 This seems like a reasonable place to put this log
mattm 2013/01/09 04:27:51 Done.
Ryan Hamilton 2013/01/09 04:48:03 Nice! A bit more code to implement the RequestHan
+ }
UpdateHistograms();
while (!pending_frames_.empty()) {
PendingFrame frame = pending_frames_.back();
@@ -554,6 +559,12 @@ void SpdyStream::Cancel() {
if (cancelled())
return;
+ if (domain_bound_cert_request_handle_ != NULL) {
+ ServerBoundCertService* sbc_service = session_->GetServerBoundCertService();
+ sbc_service->CancelRequest(domain_bound_cert_request_handle_);
+ domain_bound_cert_request_handle_ = NULL;
+ }
+
cancelled_ = true;
if (session_->IsStreamActive(stream_id_))
session_->ResetStream(stream_id_, CANCEL, "");
@@ -647,6 +658,7 @@ GURL SpdyStream::GetUrl() const {
void SpdyStream::OnGetDomainBoundCertComplete(int result) {
DCHECK_EQ(STATE_GET_DOMAIN_BOUND_CERT_COMPLETE, io_state_);
+ domain_bound_cert_request_handle_ = NULL;
DoLoop(result);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698