Since 88d22a1ca3 the writewait check was moved out of connections_timeout_idle() but the connection loop was still testing the writewait flag. That test is no longer relevant.
88d22a1ca3