IXWebSocket icon indicating copy to clipboard operation
IXWebSocket copied to clipboard

Don't read() from the invalid descriptor

Open CryptoManiac opened this issue 1 year ago • 1 comments

Having the invalid value of descriptor here might be considered weird, but it happens nevertheless, when you're DoSing the websocket endpoint using the 3G connection. It makes sense to return the generic error here instead of trying to read() from it.

CryptoManiac avatar Feb 23 '24 18:02 CryptoManiac

Can you return -1 instead ?

bsergean avatar May 17 '24 08:05 bsergean