Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.

Commit dae2968

Browse files
fix: implement kincaid's suggestions
1 parent 4e44e1f commit dae2968

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/pool.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { Connection, BuildConnectionOpts } from './connection'
55
import * as cryptoHelper from './crypto'
66

77
const log = createLogger('ilp-protocol-stream:Pool')
8-
const CLOSED_CONNECTION_CYCLE = 10 * 60 * 1000 // 10 minutes
98

109
interface ConnectionEvent {
1110
(connection: Connection): void

test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ describe('Server', function () {
304304
this.serverConn = await serverConnPromise
305305
})
306306

307-
it('should reject packets for connections that have already been closed', async function () {
307+
it('should create a new connection if client sends more packets after connection is closed', async function () {
308308
await this.serverConn.destroy()
309309

310310
await assert.isFulfilled(createConnection({

0 commit comments

Comments
 (0)