Skip to content

Commit

Permalink
fixed early EOF error
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed May 8, 2024
1 parent 1db6490 commit 1807a03
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/common-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ jobs:
- name: Generate results
if: always()
run: |
Remove-Item -Path . -Name "docker/speedtests/speedtests.test" -Force | Out-Null
New-Item -Path . -Name "${{ env.DEST_ARTIFACT }}" -ItemType "directory" -Force | Out-Null
Move-Item ${{ github.workspace }}/docker/speedtests/ ${{ env.DEST_ARTIFACT }}/
Move-Item ${{ github.workspace }}/build/*.log ${{ env.DEST_ARTIFACT }}/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,5 @@ jobs:
${{ github.token }}
with:
name: ${{ env.ARTIFACT_KEY }}
separate-directories: true
delete-merged: true
2 changes: 1 addition & 1 deletion backend/quicly-go
Submodule quicly-go updated 1 files
+26 −16 quiclylib/stream.go
4 changes: 1 addition & 3 deletions workers/client/client_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,10 +718,8 @@ func copyBuffer(dst WriterTimeout, src ReaderTimeout, buf []byte, timeoutDst tim
logger.Debug("[%d][%s] w,r: %d,%v **", *counter, prefix, 0, er)
}

if er != nil {
//if er != io.EOF {
if er != nil && er != io.EOF {
err = er
//}
}
return written, read, err
}
4 changes: 1 addition & 3 deletions workers/server/server_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,8 @@ func copyBuffer(dst WriterTimeout, src ReaderTimeout, buf []byte, timeoutDst tim
logger.Debug("[%d][%s] w,r: %d,%v **", *counter, prefix, 0, er)
}

if er != nil {
//if er != io.EOF {
if er != nil && er != io.EOF {
err = er
//}
}
return written, read, err
}

0 comments on commit 1807a03

Please sign in to comment.