Fix a pretty important bug in the socket class

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Merge branch 'master' of github.com:schoentoon/tripping-cyril