fix 100% CPU usage on BSD system (OS X)

Should use sock instead of its file descriptor.
See more at https://github.com/kennethreitz/requests/issues/1910.
Merge pull request #49 from dofelw/3.0-test

fix 100% CPU usage on BSD system (OS X)