[farsight2/master] Limit the stun timeout, have a shorter default
Olivier Crête
olivier.crete at collabora.co.uk
Tue Jan 6 14:47:32 PST 2009
---
transmitters/rawudp/fs-rawudp-component.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/transmitters/rawudp/fs-rawudp-component.c b/transmitters/rawudp/fs-rawudp-component.c
index d4a9e10..9abeecd 100644
--- a/transmitters/rawudp/fs-rawudp-component.c
+++ b/transmitters/rawudp/fs-rawudp-component.c
@@ -63,7 +63,8 @@
#define DEFAULT_UPNP_MAPPING_TIMEOUT (600)
#define DEFAULT_UPNP_DISCOVERY_TIMEOUT (10)
-#define MAX_STUN_TIMEOUT (30)
+#define MAX_STUN_TIMEOUT (60)
+#define DEFAULT_STUN_TIMEOUT (10)
/* Signals */
enum
@@ -333,7 +334,7 @@ fs_rawudp_component_class_init (FsRawUdpComponentClass *klass)
g_param_spec_uint ("stun-timeout",
"The timeout for the STUN reply",
"How long to wait for for the STUN reply (in seconds) before giving up",
- 1, G_MAXUINT, MAX_STUN_TIMEOUT,
+ 1, MAX_STUN_TIMEOUT, DEFAULT_STUN_TIMEOUT,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
--
1.5.6.5
More information about the farsight-commits
mailing list