server: also match /event path in read handler
This commit is contained in:
parent
5077dfea8e
commit
a4378c1be4
|
|
@ -599,7 +599,7 @@ func read(root *fs.Tree, cs *connState, fc *plan9.Fcall, ctx context.Context) *p
|
|||
|
||||
if entry.StreamMode() {
|
||||
// Special handling for event file — always use per-fid subscription
|
||||
if path == "event" {
|
||||
if path == "event" || path == "/event" {
|
||||
cs.mu.RLock()
|
||||
f, fidOK := cs.fids[fc.Fid]
|
||||
// Use 9P connection context (not request context) so subscription
|
||||
|
|
|
|||
Loading…
Reference in New Issue