It may be possible that when the Dream server receives a connection and tries to shut it down, a file descriptor leak may occur. This happens if the function Lwt_unix.shutdown raises an exception (apparently this happens if the remote peer was already disconnected).
The culprit does not sound to be in dream directly but in dependencies used by dream. I create this issue for tracking this issue:
It may be possible that when the Dream server receives a connection and tries to shut it down, a file descriptor leak may occur. This happens if the function
Lwt_unix.shutdownraises an exception (apparently this happens if the remote peer was already disconnected).The culprit does not sound to be in
dreamdirectly but in dependencies used bydream. I create this issue for tracking this issue:lwt_sslLwt_unix.shutdownanmonteiro/gluten#81 --> Address the issue forgluten