We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feadca7 commit 770eb45Copy full SHA for 770eb45
1 file changed
packages/portalnetwork/src/wire/utp/Socket/WriteSocket.ts
@@ -93,13 +93,6 @@ export class WriteSocket extends UtpSocket {
93
}
94
async sendDataPacket(bytes: Uint8Array): Promise<void> {
95
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
- }
103
const packet = this.createPacket<PacketType.ST_DATA>({
104
pType: PacketType.ST_DATA,
105
payload: bytes,
0 commit comments