trillium-rs / trillium

Trillium is a composable toolkit for building internet applications with async rust

Home Page:https://trillium.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

with_nodelay on prebound server

jbr opened this issue · comments

Discussed in #386

Originally posted by joshtriplett October 17, 2023
I'd like to use trillium with a prebound server, so that I can listen on 443 and then drop privileges.

Trillium rejects with_nodelay if it has a prebound server.

However, as far as I can tell, without this restriction, it would work perfectly, just as it does with a listener from LISTEN_FD. Either way, trillium would get a Transport from the listener, call set_nodelay on it, then pass it to the acceptor, then handle the resulting Transport.