From 9765f305e1f55f758a683bd95665fd0ab84a52c3 Mon Sep 17 00:00:00 2001 From: juhlig Date: Mon, 20 Apr 2020 17:03:17 +0200 Subject: Delete local socket file when a listener closes --- src/ranch_transport.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ranch_transport.erl') diff --git a/src/ranch_transport.erl b/src/ranch_transport.erl index 5fd6242..23d9d5c 100644 --- a/src/ranch_transport.erl +++ b/src/ranch_transport.erl @@ -66,6 +66,7 @@ -callback shutdown(socket(), read | write | read_write) -> ok | {error, atom()}. -callback close(socket()) -> ok. +-callback cleanup(ranch:transport_opts(any())) -> ok. %% A fallback for transports that don't have a native sendfile implementation. %% Note that the ordering of arguments is different from file:sendfile/5 and -- cgit v1.2.3