fix posisble socket block

Fix possible socket block, as discussed in the mail.