timeout

Change Volley timeout duration

末鹿安然 提交于 2019-12-16 20:03:57
问题 I use the new Volley framework for Android to do a request to my server. But it timeouts before getting the response, although it does respond. I tried adding this code: HttpConnectionParams.setConnectionTimeout(httpParams, 5000); HttpConnectionParams.setSoTimeout(httpParams, timeoutMs); in HttpClientStack of the Volley framework to a different integer (50000), but it still times out before 50 seconds. Is there a way to change the timeout to a long value? 回答1: See Request.setRetryPolicy() and

Change Volley timeout duration

ぃ、小莉子 提交于 2019-12-16 20:01:44
问题 I use the new Volley framework for Android to do a request to my server. But it timeouts before getting the response, although it does respond. I tried adding this code: HttpConnectionParams.setConnectionTimeout(httpParams, 5000); HttpConnectionParams.setSoTimeout(httpParams, timeoutMs); in HttpClientStack of the Volley framework to a different integer (50000), but it still times out before 50 seconds. Is there a way to change the timeout to a long value? 回答1: See Request.setRetryPolicy() and

Android GCM instanceID.getToken() throws TIMEOUT exception on Gingerbread

牧云@^-^@ 提交于 2019-12-14 04:01:08
问题 As the title indicates I get a TIMEOUT exception when trying to get token using Google Cloud Messaging on API 10 emulator. I have added my google account on the device, checked that "Sync" is ON, also added the <action android:name="com.google.android.c2dm.intent.REGISTRATION"/> in the manifest in the receiver and still cannot find out what is causing this: 11-25 17:35:00.896 29750-29774/com.example.alexis.myapplication W/InstanceID/Rpc: No response android.os.ConditionVariable@b667bc18 11-25

How to increase the web service timeout in a Windows Service application?

我只是一个虾纸丫 提交于 2019-12-14 03:57:56
问题 I am working on a web application that uses an asmx web service to import data in IIS7. We have a Windows Service pick up a file to import and send it thru the web service. I am getting the following error during large imports after 1 minute: The request channel timed out while waiting for a reply after 00:00:59.9843750. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a

NodeJS request timeouts with concurrency 100

a 夏天 提交于 2019-12-14 03:49:25
问题 I have two machines, one "server" and one "client". Both are CentOS6 with NodeJS v5.8.0. The server runs the following program: const AppPort = 8080; var app = require('express')(); var logger = require('log4js').getLogger(); var onFinished = require('on-finished'); var uid = require('uid'); var reqCnt = 0; var reqFin = 0; app.get('/', function(req, res) { onFinished(req, function() { reqFin++; var ts2 = (new Date()).getTime(); logger.info(`uid=${req.uid}, dt=${ts2-req.ts1}`); }); req.ts1 =

Timeout issue when using sql helper(Microsoft.ApplicationBlocks.Data)

谁说胖子不能爱 提交于 2019-12-14 03:46:31
问题 I am having timeout issues when dealing with long sql queries, the Dataset which timesout for long queries is : static public DataSet Getxxxx(Guid xxxx) { DataSet ds = SqlHelper.ExecuteDataset(ConnectionString, CommandType.StoredProcedure, "GetAllxx", new SqlParameter("@productxx", productxx)); return ds; } Where can i set timeout , I am using Microsoft application block version 2.0. 回答1: The Data Access Application Block SqlHelper has been phased out in favour of 'Database', so you'll need

Unable to get data from Sql Server 2005 (connection time out exception)

蓝咒 提交于 2019-12-14 03:32:20
问题 java.sql.SQLException: Network error IOException: Connection timed out: connect at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:410) at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50) at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at mahesh.MyFrame.connectToServer(MyFrame.java:50) at mahesh.DataCount.main(DataCount

unexpected screen clearing WebGL

青春壹個敷衍的年華 提交于 2019-12-14 03:20:20
问题 Good day! I need a help with webgl! According to http://www.html5rocks.com/en/tutorials/webgl/webgl_fundamentals/#disqus_thread tutorial, I created simple demo of my problem: https://jsfiddle.net/kurz/o2116mz2/1/. 1) Draw first black rect in main task queue drawRect(10, 10, 20, 20); 2) Try to draw same rect in timeout and the whole scene will be cleared and only after that the rect is drawing. setTimeout(function(){drawRect(30, 30, 20, 20);}, 1000); My question is how to avoid screen clearing

Why Ping timeout is not working correctly?

泪湿孤枕 提交于 2019-12-14 02:32:51
问题 I have 5 pc and i want to ping this pc's are available or no. So I'm using c# Ping class. Two pc are available but the other 3 pc are closed when i ping them my program wait min 7 seconds for response. I just want to check 1000 miliseconds and returns OK or ERROR... How can i control ping timeout? Here my code foreach (var item in listofpc) { Stopwatch timer = Stopwatch.StartNew(); try { Ping myPing = new Ping(); PingReply reply = myPing.Send(ServerName, 500); if (reply != null) { timer.Stop(

RFID Serial Port Time Out When Reading Data

耗尽温柔 提交于 2019-12-14 02:30:02
问题 thanks for taking the time to look at my issue! I have a Texas Instruments S4100 RFID scanner. I am attempting to simply read the ID of the tags I swipe over the scanner with a C++ console app. I've been pulling my hair out since this is the first time I've ever worked with serial ports. I found out quite a bit about the issue. I first used the createfile function and then the ReadFile function. I am extremely confident I opened the port correctly as the functions returned true. And when I