Why not remove UNIX domain socket before bind
Shuxin Yang
shuxinyang.oss at gmail.com
Tue Nov 29 21:30:25 UTC 2016
Hi, There:
Is there any reason not to delete UNIX domain socket before bind?
It is bit inconvenient when :
1). debugging: previous debugging session quit prematurely without
erasing the UNIX domain socket, and the subsequent debugging session
only see "address already in use" error message, and have to delete the
socket, and launch debugger again.
2). Writing deploy script. We need to make sure UNIX domain sockets are
completely delete before launching Nginx; also care must be taken to
keep the script and config file in sync, which is sometimes bit annoying.
Thanks
Shuxin
More information about the nginx-devel
mailing list