Skip to content

Commit

Permalink
Delete socket file if it exists. Fixes vapor#3085.
Browse files Browse the repository at this point in the history
  • Loading branch information
talmeme committed Jan 30, 2024
1 parent 823f20c commit 5755b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Vapor/HTTP/Server/HTTPServer.swift
Expand Up @@ -418,7 +418,7 @@ private final class HTTPServerConnection: Sendable {
case .hostname:
channel = bootstrap.bind(host: configuration.hostname, port: configuration.port)
case .unixDomainSocket(let socketPath):
channel = bootstrap.bind(unixDomainSocketPath: socketPath)
channel = bootstrap.bind(unixDomainSocketPath: socketPath, cleanupExistingSocketFile: true)
}

return channel.map { channel in
Expand Down

0 comments on commit 5755b2c

Please sign in to comment.