deepfryed/beanstalk-client — pull request #2 by cbascom (2012-05-31 02:33:53+00:00)
Title: Call close(fd) instead of shutdown to avoid fd leak

In the bs_connect method when a connection fails and in the bs_disconnect method, shutdown is used instead of close. This results in an fd being leaked each time a process tries to use bs_disconnect. Using close instead resolves this issue.