Skip to content

Commit

Permalink
desync: 3ms delay before copying orig contents
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Oct 27, 2024
1 parent 972eca4 commit a7d3fc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions intra/dialers/split_and_desync.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ func (s *overwriteSplitter) Write(b []byte) (n int, err error) {
return n1, err
}

// also: github.com/hufrea/byedpi/blob/bbe95222/desync.c#L115
time.Sleep(3 * time.Millisecond)
// restore the first-half of the payload so that it gets picked up on retranmission.
copy(firstSegment, b[:len(s.payload)])

Expand Down

0 comments on commit a7d3fc2

Please sign in to comment.