this.socketInt.getSendQueueCount is undefined in transports/http3-quiche/lib/socket.js
I found this by testing several JavaScript runtimes using the `WebTransport` client from this repository, along with the `WebTransport` server from this repository.
Bun throws
```
terminate called after throwing an instance of 'Napi::Error'
what(): Invalid state: Controller is already closed
Aborted
```
when closing the `WebTransport` (`WebTransportBase` class) client connection
Deno throws this when closing the connection client side, which gives us an object reference
```
terminate called after throwing an instance of 'Napi::Error'
what(): this.sockterminate called after throwing an instance of 'Napi::Error'
what(): Invalid state: Controller is already closed
AbortedetInt.getSendQueueCount is not a function
Aborted
```
There are two (2) references to `this.socketInt.getSendQueueCount()` in this code base that I could find, here, where the function is called, yet never defined
https://github.com/fails-components/webtransport/blob/1f42b584321bf4f26f282858b9e40d63db0c03cc/transports/http3-quiche/lib/socket.js#L131-L140
关闭于 2025-09-10 38 条评论