Skip to content

Commit 770eb45

Browse files
author
ScottyPoi
committed
remove congestion control check
1 parent feadca7 commit 770eb45

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

packages/portalnetwork/src/wire/utp/Socket/WriteSocket.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,6 @@ export class WriteSocket extends UtpSocket {
9393
}
9494
async sendDataPacket(bytes: Uint8Array): Promise<void> {
9595
this.state = ConnectionState.Connected
96-
try {
97-
await this.packetManager.congestionControl.canSend()
98-
} catch (e) {
99-
this.logger(`DATA packet not acked. Closing connection to ${this.remoteAddress}`)
100-
await this.sendResetPacket()
101-
this.close()
102-
}
10396
const packet = this.createPacket<PacketType.ST_DATA>({
10497
pType: PacketType.ST_DATA,
10598
payload: bytes,

0 commit comments

Comments
 (0)