Fix disconnections with JF endpoint.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 5 Oct 2008 13:29:40 +0000 (14:29 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 5 Oct 2008 13:29:40 +0000 (14:29 +0100)
dtls.c

diff --git a/dtls.c b/dtls.c
index e4fbc87..516a366 100644 (file)
--- a/dtls.c
+++ b/dtls.c
@@ -347,9 +347,17 @@ int dtls_mainloop(struct openconnect_info *vpninfo, int *timeout)
                        break;
 
                default:
-                       fprintf(stderr, "Unknown DTLS packet type %02x\n", buf[0]);
+                       /* We don't abort, because this actually does seem to happen
+                        * quite frequently with some endpoints. It can be triggered
+                        * by downloading a reasonably-sized web page. Dropping the 
+                        * offending packets doesn't even seem to stall the TCP 
+                        * connection when it's the only traffic on the link. */
+                       fprintf(stderr, "Unknown DTLS packet type %02x, len %d\n", buf[0], len);
+                       break;
+/*                     
                        vpninfo->quit_reason = "Unknown packet received";
                        return 1;
+*/
                }
        }