Skip to content

Commit 3cf1f5d

Browse files
committed
Delete sock time_wait true and rescue exception when start
1 parent ea89f94 commit 3cf1f5d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/pacproxy/pacproxy.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def initialize(config = {})
2727

2828
def start
2929
@socket = TCPServer.new(@host, @port)
30-
@socket.setsockopt(:SOCKET, :REUSEADDR, true)
3130
@status = :Running
3231
loop do
3332
s = @socket.accept
@@ -37,6 +36,8 @@ def start
3736
STDERR.puts e
3837
sleep 3
3938
retry
39+
rescue => e
40+
STDERR.puts e
4041
ensure
4142
shutdown
4243
end

0 commit comments

Comments
 (0)