use enum retired_fd instead of -1

using -1 causes a warning on Windows platform because SOCKET is unsigned.
Merge pull request #775 from pijyoi/master

use enum retired_fd instead of -1