# HG changeset patch # User Ralf Ertzinger # Date 1190108115 -7200 # Node ID eaa8a5747628345815b950b297605fa507c32515 # Parent 2e33cfa6a872dfa033b4016a620aa12ccde54093 - Add network timeouts - Add useragent diff -r 2e33cfa6a872 -r eaa8a5747628 src/neon/neon.c --- a/src/neon/neon.c Mon Sep 17 22:10:21 2007 +0200 +++ b/src/neon/neon.c Tue Sep 18 11:35:15 2007 +0200 @@ -271,6 +271,9 @@ handle->session = ne_session_create(handle->purl->scheme, handle->purl->host, handle->purl->port); ne_set_session_flag(handle->session, NE_SESSFLAG_ICYPROTO, 1); ne_set_session_flag(handle->session, NE_SESSFLAG_PERSIST, 0); + ne_set_connect_timeout(handle->session, 10); + ne_set_read_timeout(handle->session, 10); + ne_set_useragent(handle->session, "Audacious/1.4.0"); ne_redirect_register(handle->session); _DEBUG("Creating request");