Index: radius/radius_acct.c
===================================================================
RCS file: /home/cvs/gateway/radius/radius_acct.c,v
retrieving revision 1.19
diff -a -u -r1.19 radius_acct.c
--- radius/radius_acct.c	12 Jan 2009 16:46:51 -0000	1.19
+++ radius/radius_acct.c	5 Apr 2010 19:01:57 -0000
@@ -217,14 +217,14 @@
     int ss, cs; /* server and client sockets */
     int fl; /* socket flags */
     Octstr *addr = NULL;
-    int forward;
+    int forward, res;
     Octstr *tmp;
 
     run_thread = 1;
     ss = cs = -1;
 
     /* create client binding, only if we have a remote server
-     * and make the client socet non-blocking */
+     * and make the client socket non-blocking */
     if (remote_host != NULL) {
         cs = udp_client_socket();
         fl = fcntl(cs, F_GETFL);
@@ -249,9 +249,12 @@
 
         pdu = r = NULL;
         data = rdata = from_nas = from_radius = NULL;
-        
-        if (read_available(ss, 100000) < 1)
+
+        if ((res = read_available(ss, 2000000)) < 1){
+            if (!res) error(0, "RADIUS: Connection to radius server %s timed "
+               "out (2 s)", octstr_get_cstr(our_host));
             continue;
+        }
 
         /* get request from NAS */
         if (udp_recvfrom(ss, &data, &from_nas) == -1) {
