-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
method conn:shutdown()
is missing
#181
Comments
I do not remember why it is not implemented, but I think because the LuaSocket´s shutdown() has a mode as parameter that cannot be mapped directly to OpenSSL. https://aiq0.github.io/luasocket/tcp.html#shutdown |
ah, that explains it. But then wouldn't it make sense (to be compatible) to implement it but ignore the parameter if it is provided, meaning that LuaSec would always use the "both" option as specified by LuaSocket. And then document the discrepancy in behavior between the two? |
Reading the links, I assume that a plain TCP socket can shutdown either receive or send. But with TLS, even for just reading, there might be reads and writes required on the TCP level, hence my guess is that with TLS you can either shutdown both, or none. No expert on this topic however... |
It seems that |
while writing compatibility stuff I ran into this method missing in LuaSec. Whilst LuaSocket does have it.
would it be possible to add the method? Or provide any hints as where/how to add it?
The text was updated successfully, but these errors were encountered: