fidm / quic

[DEPRECATED, recommended https://github.com/nodejs/quic] A QUIC server/client implementation in Node.js
MIT License
130 stars 13 forks source link

Overload destroy() #13

Open splitice opened 6 years ago

splitice commented 6 years ago

Many libraries call the destroy() public method to close streams. While _destroy is used as a last method of resort it apears, IMHO destroy should still try and send a RST. Currently end then destroy needs to be called.