From 804cfb5fcec81c22dd07cdd22c5ca662838e247f Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 30 May 2017 16:34:27 +0300 Subject: [PATCH] [platform] increases socket lock read timeout --- platform/platform-impl/src/com/intellij/idea/SocketLock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/idea/SocketLock.java b/platform/platform-impl/src/com/intellij/idea/SocketLock.java index 5888ab82d5fa..b33480cc5980 100644 --- a/platform/platform-impl/src/com/intellij/idea/SocketLock.java +++ b/platform/platform-impl/src/com/intellij/idea/SocketLock.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2016 JetBrains s.r.o. + * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -201,7 +201,7 @@ public final class SocketLock { args = checkForJetBrainsProtocolCommand(args); try { try (Socket socket = new Socket(InetAddress.getLoopbackAddress(), portNumber)) { - socket.setSoTimeout(1000); + socket.setSoTimeout(5000); boolean result = false; @SuppressWarnings("IOResourceOpenedButNotSafelyClosed") DataInputStream in = new DataInputStream(socket.getInputStream());