Skip to content

Commit

Permalink
Bug 1452130 - nsHttpConnection.cpp should compare time intervals in t…
Browse files Browse the repository at this point in the history
…he same units r=dragana
  • Loading branch information
psumbera committed Jun 15, 2018
1 parent 3398d34 commit 700965b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netwerk/protocol/http/nsHttpConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ nsHttpConnection::ReadTimeoutTick(PRIntervalTime now)
// succesfullu write to the socket and this can only happen after
// the TLS handshake is done.
PRIntervalTime initialTLSDelta = now - mLastWriteTime;
if (initialTLSDelta > gHttpHandler->TLSHandshakeTimeout()) {
if (initialTLSDelta > PR_MillisecondsToInterval(gHttpHandler->TLSHandshakeTimeout())) {
LOG(("canceling transaction: tls handshake takes too long: tls handshake "
"last %ums, timeout is %dms.",
PR_IntervalToMilliseconds(initialTLSDelta),
Expand Down

0 comments on commit 700965b

Please sign in to comment.