connection-timeout

Tomcat Connection timeout

不问归期 提交于 2019-12-10 23:54:28
问题 I am running Spring + Ext JS app on tomcat. Due to few heavy process which takes significant time, time to time , I get the following exceptions DefaultHandlerExceptionResolver:141|Handling of [org.springframework.http.converter.HttpMessageNotWritableException] resulted in Exception java.lang.IllegalStateException: Cannot call sendError() after the response has been committed at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:467) So I decided to increase the

Microsoft Hive ODBC driver 2.1.5 timeout

牧云@^-^@ 提交于 2019-12-10 17:25:00
问题 I recently upgrade to the Microsoft hive odbc driver version 2.01.05.1006, released 12/8/2016. My code was working with the previous version (1.0) of the driver. Now when running my code I keep getting the following error. ERROR [HY000] [Microsoft][Hardy] (72) Query execution timeout expired. I have tried changing the timeout settings for the ODBC driver, but it still times out. Does anybody have any other suggestions? 来源: https://stackoverflow.com/questions/41148927/microsoft-hive-odbc

getBluetoothService() called with no BluetoothManagerCallback for Android Nexus 5

£可爱£侵袭症+ 提交于 2019-12-10 15:23:51
问题 I am going to implemenet the module for sending commands from my Android smartphone to HC-06 via BLuetooth. WHen it comes to the execution , it show s the following exception and find no clue for the error message as title . Would you please tell the way to modifiy ? Exception Log Message : 07-29 13:51:37.701: W/BluetoothAdapter(1928): getBluetoothService() called with no BluetoothManagerCallback 07-29 13:51:37.711: D/BluetoothSocket(1928): connect(), SocketState: INIT, mPfd:

how to set connection/request timeout for jetty server?

若如初见. 提交于 2019-12-10 12:49:21
问题 I'm running an embedded jetty server (jetty 6.1.24) inside my application like this: Handler handler=new AbstractHandler() { @Override public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException { //this can take a long time doSomething(); } }; Server server = new Server(8080); Connector connector = new org.mortbay.jetty.nio.SelectChannelConnector(); server.addConnector(connector); server.setHandler(handler);

FTP response 421 received. Server closed connection

烂漫一生 提交于 2019-12-10 01:09:56
问题 I am writing a JAVA code to traverse FTP Location using Apache Commons Net FTPClient and getting output in an Excel file. the code execute correctly for approx 5 min but then gives an IOException: org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection. I am using commons-net-3.0.1.jar. I have done some R&D and tried: setDefaultTimeout(6000); setConnectTimeout(3000); setSoTimeout(3000); enterLocalPassiveMode(); and sending NOOP , but still

MySqlException: Timeout expired - Increasing Connection Timeout Has Had No Effect

一个人想着一个人 提交于 2019-12-09 16:18:07
问题 I have a query that is taking longer to execute as the database increases in size. The query is optimized and necessary, but my C# Console Application has recently been giving me this error: Unhandled Exception: MySql.Data.MySqlClient.MySqlException: Timeout expired. Increasing the connection time out in the connection string doesn't help; I increased it from Connect Timeout=28800 to Connect Timeout=128800 but I'm still getting the error despite this change. If I run the query from MySQL

JSch Socket timeout - Connection timeout

孤者浪人 提交于 2019-12-08 15:07:11
问题 I am trying to establish an SFTP session using JSch. The code is working correctly and I am able to establish a session with multiple servers. However, today I am encountering an issue with one of the server. Caused by: com.jcraft.jsch.JSchException: java.net.ConnectException: Connection timed out: connect at com.jcraft.jsch.Util.createSocket(Util.java:349) ~[jsch-0.1.54.jar:?] at com.jcraft.jsch.Session.connect(Session.java:215) ~[jsch-0.1.54.jar:?] at com.jcraft.jsch.Session.connect(Session

SignalR - OnDisconnected is called too late

蹲街弑〆低调 提交于 2019-12-08 14:04:09
问题 I'm having a self hosted SignalR 2.2.0 server and using OWIN for the configuration. [assembly: OwinStartup(typeof(Server.Communication.StartUp))] namespace Server.Communication { public class StartUp { public void Configuration(IAppBuilder app) { app.Map("/Communication", map => { map.UseCors(CorsOptions.AllowAll); var hubConfiguration = new HubConfiguration { EnableDetailedErrors = true}; map.RunSignalR(hubConfiguration); }); } } } Im starting the server via WebApp.Start($"http://{ip}:{port}

Maven clean install fails with connection timed out:connect error

跟風遠走 提交于 2019-12-08 07:48:46
问题 I tried maven clean install on my project and I every time I get the following error Maven version 2.2.1 JDK 1.7 F:\Wealth>"C:\Program Files\apache-maven-2.2.1\bin\mvn.bat" cl ean install -U [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building polo [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ Downloading: http://maven.apps.com/maven2/org/apache

How to decrease TCP connect() system call timeout?

。_饼干妹妹 提交于 2019-12-07 10:38:27
问题 In command below I enable file /dev/tcp/10.10.10.1/80 both for reading and writing and associate it with file descriptor 3: $ time exec 3<>/dev/tcp/10.10.10.1/80 bash: connect: Operation timed out bash: /dev/tcp/10.10.10.1/80: Operation timed out real 1m15.151s user 0m0.000s sys 0m0.000s This automatically tries to perform TCP three-way handshake. If 10.10.10.1 is not reachable as in example above, then connect system call tries to connect for 75 seconds. Is this 75 second timeout determined