This results in consistent behavior of the server example between Linux and OSX - serve_connection returns Ok immediately after a client connects, rather than on OSX blocking while the client is connected, and then returning an Err later when the client gracefully disconnects.
Based on a suggestion by @fussybeaver at https://github.com/softprops/hyperlocal/issues/66#issuecomment-2041543035, disables keep alive in the server example.
This results in consistent behavior of the server example between Linux and OSX -
serve_connection
returnsOk
immediately after a client connects, rather than on OSX blocking while the client is connected, and then returning anErr
later when the client gracefully disconnects.