Mercurial > audlegacy-plugins
changeset 1729:eaa8a5747628
- Add network timeouts
- Add useragent
author | Ralf Ertzinger <ralf@skytale.net> |
---|---|
date | Tue, 18 Sep 2007 11:35:15 +0200 |
parents | 2e33cfa6a872 |
children | 50d151b259bb |
files | src/neon/neon.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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");