Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/netPublic

Commit5d5a036

Browse files
committed
quic: handle streams moving from the data queue to the meta queue
In Conn.appendStreamFrames, a stream can be moved from thedata queue (for streams with only flow-controlled frames to send)to the metadata queue (for streams with non-flow-controlled framesto send) if some other goroutine asynchronously modifies thestream state.Adjust the check at the end of this function to clear the needSendbool only if queueMeta and queueData are both empty, to avoidlosing track of the need to send frames when this happens.Forgolang/go#58547Change-Id: Ib9ad3b01f543cd7673f5233ceb58b2db9adfff5aReviewed-on:https://go-review.googlesource.com/c/net/+/531656LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>Reviewed-by: Jonathan Amsterdam <jba@google.com>
1 parent350aad2 commit5d5a036

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎internal/quic/conn_streams.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,9 @@ func (c *Conn) appendStreamFrames(w *packetWriter, pnum packetNumber, pto bool)
372372
state=s.state.set(0,streamQueueData)
373373
c.queueStreamForSendLocked(s,state)
374374
}
375-
c.streams.needSend.Store(c.streams.queueData.head!=nil)
375+
ifc.streams.queueMeta.head==nil&&c.streams.queueData.head==nil {
376+
c.streams.needSend.Store(false)
377+
}
376378
returntrue
377379
}
378380

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp