Problem: default LINGER value is insane

Solution: use a sane value, e.g. 2 seconds

Fixes #1247
Merge pull request #1248 from hintjens/master

Problem: default LINGER value is insane