Check out SOCKS
nginx can do that in stream mode.
Maybe left over from a server crash or something like that. It is safe to delete that file.