Connection timeout when using wget or curl

see #248