Skip to content

Commit

Permalink
extend timeout on data packets
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottyPoi committed Dec 13, 2024
1 parent d26163d commit b9d83e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class CongestionControl extends EventEmitter {
this.logger(`cur_window full. waiting for in-flight packets to be acked`)
return new Promise((resolve, reject) => {
// Abort canSend promise if DATA packets not acked in a timely manner
const abort = setTimeout(() => reject(false), 3000)
const abort = setTimeout(() => reject(false), 10000)
this.once('canSend', () => {
clearTimeout(abort)
resolve(true)
Expand Down

0 comments on commit b9d83e8

Please sign in to comment.