TODO: resend timeouts for bigger files