File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ func (dtnet *libp2pDataTransferNetwork) handleNewStream(s network.Stream) {
242
242
for {
243
243
var received datatransfer.Message
244
244
var err error
245
+ _ = s .SetReadDeadline (time .Now ().Add (dtnet .sendMessageTimeout ))
245
246
switch s .Protocol () {
246
247
case datatransfer .ProtocolDataTransfer1_2 :
247
248
received , err = message .FromNet (s )
@@ -253,9 +254,10 @@ func (dtnet *libp2pDataTransferNetwork) handleNewStream(s network.Stream) {
253
254
go dtnet .receiver .ReceiveError (err )
254
255
log .Debugf ("net handleNewStream from %s error: %s" , p , err )
255
256
}
257
+ _ = s .SetReadDeadline (time.Time {})
256
258
return
257
259
}
258
-
260
+ _ = s . SetReadDeadline (time. Time {})
259
261
ctx := context .Background ()
260
262
log .Debugf ("net handleNewStream from %s" , p )
261
263
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ require (
305
305
)
306
306
307
307
require (
308
- github.com/filecoin-project/boost-graphsync v0.13.10
308
+ github.com/filecoin-project/boost-graphsync v0.13.11
309
309
github.com/filecoin-project/boost/extern/boostd-data v0.0.0-20231124125934-3233c510357f
310
310
github.com/filecoin-project/go-data-segment v0.0.1
311
311
github.com/filecoin-project/lotus v1.26.3
Original file line number Diff line number Diff line change @@ -316,8 +316,8 @@ github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs=
316
316
github.com/fatih/color v1.15.0 /go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw =
317
317
github.com/felixge/httpsnoop v1.0.3 h1:s/nj+GCswXYzN5v2DpNMuMQYe+0DDwt5WVCU6CWBdXk =
318
318
github.com/felixge/httpsnoop v1.0.3 /go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U =
319
- github.com/filecoin-project/boost-graphsync v0.13.10 h1:L6qxpyognlcH73+vEPBXR8pbSMijXSV2CuV/sz0QDpA =
320
- github.com/filecoin-project/boost-graphsync v0.13.10 /go.mod h1:bc2M5ZLZJtXHl8kjnqtn4L1MsdEqpJErDaIeY0bJ9wk =
319
+ github.com/filecoin-project/boost-graphsync v0.13.11 h1:quhAvlz+26D1xLH5v5XfWFfuxsZEcwbpbZxmF5ZNJzw =
320
+ github.com/filecoin-project/boost-graphsync v0.13.11 /go.mod h1:bc2M5ZLZJtXHl8kjnqtn4L1MsdEqpJErDaIeY0bJ9wk =
321
321
github.com/filecoin-project/boost/extern/boostd-data v0.0.0-20231124125934-3233c510357f h1:8dd0yAadyeOL5Qd42XhEwD60UKvIFkY2MLhef/IaeOk =
322
322
github.com/filecoin-project/boost/extern/boostd-data v0.0.0-20231124125934-3233c510357f /go.mod h1:MyzvfYWAH0OAyf95TLUWYq3cO3vm/TVzDS57GKQi47o =
323
323
github.com/filecoin-project/dagstore v0.7.0 h1:IS0R+69za8dguYWeqz/MI+nb7ONpk03tAkxPCBXEKm0 =
Original file line number Diff line number Diff line change @@ -1371,6 +1371,7 @@ github.com/fatih/structs v0.0.0-20180123065059-ebf56d35bba7/go.mod h1:9NiDSp5zOc
1371
1371
github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo =
1372
1372
github.com/fatih/structs v1.1.0 /go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M =
1373
1373
github.com/felixge/httpsnoop v1.0.2 /go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U =
1374
+ github.com/filecoin-project/boost-graphsync v0.13.11 /go.mod h1:bc2M5ZLZJtXHl8kjnqtn4L1MsdEqpJErDaIeY0bJ9wk =
1374
1375
github.com/filecoin-project/boost/extern/boostd-data v0.0.0-20231009154452-ca8daa2870f3 /go.mod h1:vHUM62fb82DpsBSXptQjpvcysjoV2Guc1MVJiIYccfQ =
1375
1376
github.com/filecoin-project/filecoin-ffi v0.30.4-0.20220519234331-bfd1f5f9fe38 /go.mod h1:GM5pXRYvQM7wyH6V2WtPnJ2k1jt+qotRkWLxBSRCOuE =
1376
1377
github.com/filecoin-project/go-dagaggregator-unixfs v0.3.0 h1:UXLtBUnPa61LkNa2GqhP+aJ53bOnHP/dzg6/wk2rnsA =
You can’t perform that action at this time.
0 commit comments