From 20f275a86f59fe1b43a4bc1a49a86f815d3ca319 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 8 Jan 2016 21:56:21 +1300 Subject: Handle websocket connection idle timeout --- src/org/traccar/api/AsyncSocketServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/api/AsyncSocketServlet.java b/src/org/traccar/api/AsyncSocketServlet.java index 59f0b7ee2..fbfe248e5 100644 --- a/src/org/traccar/api/AsyncSocketServlet.java +++ b/src/org/traccar/api/AsyncSocketServlet.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com) + * Copyright 2015 - 2016 Anton Tananaev (anton.tananaev@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ import org.traccar.api.resource.SessionResource; public class AsyncSocketServlet extends WebSocketServlet { - private static final long ASYNC_TIMEOUT = 60000; + private static final long ASYNC_TIMEOUT = 10 * 60 * 1000; @Override public void configure(WebSocketServletFactory factory) { -- cgit v1.2.3