Closed jakitliang closed 11 months ago
Any chance you could expand this into a full MWE so we can add it to the test suite and also aid in tracking this down?
I think it is possible #81 fixed this recently. We still need an MWE if you can contribute such a thing, but once we have a test case it will be worth checking against before and after that PR merge.
It seems to me this is either a duplicate of #225 or #410 (possibly even both if those two things turn out to be duplicate. Lets continue on those respective issues unless there is solid evidence for this being a unique issue.
Onece you had accept a socket:
Step1. Server side
Step2. Client side
Step3. Server side
Because the
err == 'closed'
is 50% to get triggered.So not every time the remote close can let luasocket gave a check
err == closed
.So Please tell me other way how to check a socket is already closed?