Chromium Code Reviews| Index: net/spdy/spdy_session.cc |
| =================================================================== |
| --- net/spdy/spdy_session.cc (revision 67728) |
| +++ net/spdy/spdy_session.cc (working copy) |
| @@ -314,9 +314,10 @@ |
| // encrypted SSL socket. |
| if (is_secure_ && certificate_error_code_ != OK && |
| (url.SchemeIs("https") || url.SchemeIs("wss"))) { |
| - LOG(DFATAL) << "Tried to get pushed spdy stream for secure content over an " |
| - << "unauthenticated session."; |
| - return certificate_error_code_; |
| + LOG(ERROR) << "Tried to get pushed spdy stream for secure content over an " |
|
willchan no longer on Chromium
2010/12/02 23:02:45
Why is this ERROR instead of DFATAL? It's a bug i
|
| + << "unauthenticated session."; |
| + CloseSessionOnError(static_cast<net::Error>(certificate_error_code_), true); |
| + return ERR_SPDY_PROTOCOL_ERROR; |
| } |
| const std::string& path = url.PathForRequest(); |
| @@ -411,9 +412,10 @@ |
| // encrypted SSL socket. |
| if (is_secure_ && certificate_error_code_ != OK && |
| (url.SchemeIs("https") || url.SchemeIs("wss"))) { |
| - LOG(DFATAL) << "Tried to create spdy stream for secure content over an " |
| - << "unauthenticated session."; |
| - return certificate_error_code_; |
| + LOG(ERROR) << "Tried to create spdy stream for secure content over an " |
| + << "unauthenticated session."; |
| + CloseSessionOnError(static_cast<net::Error>(certificate_error_code_), true); |
| + return ERR_SPDY_PROTOCOL_ERROR; |
| } |
| const std::string& path = url.PathForRequest(); |