From 524f97bd9cea9a005d72a0680309a028b736288f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 16 Oct 2018 15:18:18 +0300 Subject: SSE: 10 minutes timeout --- juick-server/src/main/java/com/juick/server/api/Service.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main/java/com/juick') diff --git a/juick-server/src/main/java/com/juick/server/api/Service.java b/juick-server/src/main/java/com/juick/server/api/Service.java index ecfc6957..c65d89a1 100644 --- a/juick-server/src/main/java/com/juick/server/api/Service.java +++ b/juick-server/src/main/java/com/juick/server/api/Service.java @@ -140,7 +140,7 @@ public class Service { @GetMapping("/api/events") public SseEmitter handle() throws IOException { logger.info("{} connected", UserUtils.getCurrentUser().getName()); - SseEmitter emitter = new SseEmitter(86400000L); + SseEmitter emitter = new SseEmitter(600000L); Message service = new Message(); service.setService(true); emitter.send(service); -- cgit v1.2.3