icecat: add release icecat-140.6.0-1gnu1 for ecne
This commit is contained in:
parent
618c9f4145
commit
7d0f5dab3b
3382 changed files with 457689 additions and 569094 deletions
|
|
@ -282,6 +282,12 @@ void HttpConnectionUDP::Close(nsresult reason, bool aIsShutdown) {
|
|||
mSocket->Close();
|
||||
mSocket = nullptr;
|
||||
}
|
||||
|
||||
if (mHttp3Session) {
|
||||
mHttp3Session->SetCleanShutdown(true);
|
||||
mHttp3Session->Close(reason);
|
||||
mHttp3Session = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void HttpConnectionUDP::DontReuse() {
|
||||
|
|
@ -367,7 +373,7 @@ nsresult HttpConnectionUDP::OnHeadersAvailable(nsAHttpTransaction* trans,
|
|||
// response headers so that it will be ready to receive the new response.
|
||||
if (mIsReused &&
|
||||
((PR_IntervalNow() - mHttp3Session->LastWriteTime()) < k1000ms)) {
|
||||
Close(NS_ERROR_NET_RESET);
|
||||
CloseTransaction(mHttp3Session, NS_ERROR_NET_RESET);
|
||||
*reset = true;
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
@ -697,7 +703,9 @@ NS_IMETHODIMP HttpConnectionUDP::OnPacketReceived(nsIUDPSocket* aSocket) {
|
|||
|
||||
NS_IMETHODIMP HttpConnectionUDP::OnStopListening(nsIUDPSocket* aSocket,
|
||||
nsresult aStatus) {
|
||||
CloseTransaction(mHttp3Session, aStatus);
|
||||
// At this point, the UDP socket has already been closed. Set aIsShutdown to
|
||||
// true to ensure that mHttp3Session is also closed.
|
||||
CloseTransaction(mHttp3Session, aStatus, true);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue