Server stable

This improves server reliability for reading requests, writing responses, and re-using local sockets.