[PATCH 1/2] server: Convert to and use a timespec directly for timeouts if supported.