Update network.c

simple timeout-connect