s/sock/fd/. Fixes #1487.