mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
wip
This commit is contained in:
parent
020cfe395a
commit
134df290a3
@ -97,6 +97,7 @@ func (t *quicListener) serve(ctx context.Context) error {
|
||||
}
|
||||
defer func() { _ = udpConn.Close() }()
|
||||
|
||||
// XXX: HAX TO BE REVERTED
|
||||
// svc, conn := stun.New(t.cfg, t, udpConn)
|
||||
// defer conn.Close()
|
||||
|
||||
|
@ -272,8 +272,8 @@ func newRawConnection(deviceID DeviceID, stream netutil.Stream, receiver Model,
|
||||
receiver: receiver,
|
||||
stream: cs,
|
||||
awaiting: make(map[int]chan asyncResult),
|
||||
inbox: make(chan streamMessage, 1),
|
||||
outbox: make(chan asyncMessage, 1),
|
||||
inbox: make(chan streamMessage),
|
||||
outbox: make(chan asyncMessage),
|
||||
closeBox: make(chan asyncMessage),
|
||||
clusterConfigBox: make(chan *ClusterConfig),
|
||||
dispatcherLoopStopped: make(chan struct{}),
|
||||
@ -436,7 +436,7 @@ func (c *rawConnection) streamForRequest(ctx context.Context) chan asyncMessage
|
||||
}
|
||||
|
||||
func (c *rawConnection) registerNewSubstream(strm io.ReadWriteCloser) chan asyncMessage {
|
||||
outbox := make(chan asyncMessage, 1)
|
||||
outbox := make(chan asyncMessage)
|
||||
c.substreams = append(c.substreams, outbox)
|
||||
go c.substreamReaderLoop(strm, outbox)
|
||||
go c.substreamWriterLoop(strm, outbox)
|
||||
|
Loading…
Reference in New Issue
Block a user