tass-belgium / picotcp-modules

Application level modules to run on top of the popular Embedded picoTCP TCP/IP stack
GNU General Public License v2.0
8 stars 11 forks source link

[Websocket] When the WSocket is created, its fd should be set to -1 #4

Closed danielinux closed 9 years ago

danielinux commented 9 years ago

When a new WSocket is created, its fd should be set to -1, otherwise cleaning up the object upon initialization errors could lead to closing another socket.