This check was in there because we used to keep track of which sockets had TLS with bits inside a 32 bit integer (using BITFIELD_SET). I'm pretty sure that's all been removed now we pass socketType through, so these checks could be taken out? I don't believe there's any reason to restrict the value of the socket handle at all now.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
This check was in there because we used to keep track of which sockets had TLS with bits inside a 32 bit integer (using
BITFIELD_SET
). I'm pretty sure that's all been removed now we pass socketType through, so these checks could be taken out? I don't believe there's any reason to restrict the value of the socket handle at all now.