Is there a compelling reason not to move it to libpromises/timeout.[ch] ?
Does the same apply to CONNTIMEOUT ?