bugfix: socket.read(fd, nil) should clear buffer size to 0
Merge branch 'master' into dev
remove register_slave