Tag: 超时

为什么composer php在300秒后安装超时?

当我尝试在我的服务器上构build它时,我在symfony2中创build了一个小项目,解压symfony时总是失败。 build立好,突然composer php不会解压symfony,我什么也没有改变。 我试图build立与jenkins,也手动从bash相同的结果。 这不是权限问题,也是我的服务器上的互联网连接是好的。 Loading composer repositories with package information Installing dependencies (including require-dev) from lock file – Installing symfony/symfony (v2.3.4) Downloading: 100% [Symfony\Component\Process\Exception\ProcessTimedOutException] The process "unzip '/path/vendor/symfony/symfony/6116f6f3 d4125a757858954cb107e64b' -d 'vendor/composer/b2f33269' && chmod -R u+w 'vendor/composer/b2f33269'" exceeded the timeout of 300 seconds.

IIS会话超时与ASP.NET会话超时

在IIS 6(和其他版本太afaik),在属性 – >主目录选项卡 – >configurationbutton – >选项选项卡中有会话超时设置。 看起来像这样: 在ASP.NET web.config中有一个SessionState设置,如下所示: <system.web> <sessionState timeout="120" /> <!– etc .. –> </system.web> 他们有什么关系吗? 他们设置相同的东西,还是不同的东西?

Mac OS X上的超时命令?

Mac OSx上是否有超时命令的替代方法? 基本的要求是我能够运行一个指定的时间的命令。 例如: timeout 10 ping google.com 这个程序在Linux上运行10秒钟。

sql alchemy连接超时

我正在使用MySQL sqlalchemy ,并执行SQLexpression式的查询。 当执行一些查询,然后超时。 我find了一个答案,但我不清楚。 请,任何人都可以帮助我? TimeoutError:QueuePool限制大小5溢出10到达,连接超时,超时30

Express.js响应超时

问题 我一直在寻找Express.js的请求/响应超时,但一切似乎与连接而不是请求/响应本身有关。 如果请求花费很长时间,则应该超时。 显然这不应该发生,但即使是一个简单的错误,因为有一个没有调用callback或没有res.send()的路由处理程序,浏览器将一直等待回复。 一个空的路由处理器就是一个很好的例子。 app.get('/sessions/', function(req, res, callback){}); 固定 我在 app.use(app,router); 之前添加了以下内容app.use(app,router); 它似乎增加了超时function。 有没有人有任何经验/意见呢? app.use(function(req, res, next){ res.setTimeout(120000, function(){ console.log('Request has timed out.'); res.send(408); }); next(); }); 请注意,我已将超时设置为2分钟。

如何在Java Web应用程序中dynamic设置会话超时?

我需要给我的用户一个Web界面来改变会话超时间隔。 因此,不同的Web应用程序的安装将能够有不同的会话超时,但他们的web.xml不能不同。 有没有办法以编程方式设置会话超时,以便我可以使用,比如ServletContextListener.contextInitialized()读取configuration的时间间隔,并在应用程序启动时进行设置? 非常感谢。

ASP.NET MVC和httpRuntime executionTimeout

我想增加一个ASP.NET MVC应用程序的一个小节的httpRuntime executionTimeout 。 在一个普通的Web应用程序中,您可以使用: <configuration> <location path="UploadPage.aspx"> <httpRuntime executionTimeout="600"/> </location> </configuration> 但是,在ASP.NET MVC中确实没有“文件夹”的概念,那么我该如何去做呢? 让我们假设ASP.NET MVCpath是/Images/Upload与一个ImagesController和上传行动。

NGINX:从上游读取响应报头时,上游超时(110:连接超时)

我有Puma作为上游应用服务器运行,Riak作为我的后台数据库集群。 当我发送一个请求,映射 – 减less大约25K用户的数据块,并从Riak返回到应用程序,我在Nginx日志中得到一个错误: 上游超时(110:连接超时),从上游读取响应头 如果我直接查询我的上游没有nginx代理,与相同的请求,我得到所需的数据。 一旦代理被放入,Nginx超时就会发生。 **nginx.conf** user www-data; worker_processes 2; pid /var/run/nginx.pid; events { worker_connections 4000; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 10m; proxy_connect_timeout 600s; proxy_send_timeout 600s; proxy_read_timeout 600s; fastcgi_send_timeout 600s; fastcgi_read_timeout 600s; types_hash_max_size 2048; proxy_cache_path /opt/cloud/cache levels=1 keys_zone=cloud:10m; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; gzip on; […]

Android上的http连接超时不起作用

我正在编写一个连接到web服务的应用程序,如果它不能连接,我不希望它等待太久。 因此我设置了httpparams的connectionTimeout。 但它似乎没有任何影响。 要testing我暂时closuresWLAN。 应用程序尝试连接相当一段时间(比我想要的3秒多),然后抛出一个UnknownHostException。 这是我的代码: try{ HttpClient httpclient = new DefaultHttpClient(); HttpParams params = httpclient.getParams(); HttpConnectionParams.setConnectionTimeout(params, 3000); HttpConnectionParams.setSoTimeout(params, 3000); httppost = new HttpPost(URL); StringEntity se = new StringEntity(envelope,HTTP.UTF_8); httppost.setEntity(se); //Code stops here until UnknownHostException is thrown. BasicHttpResponse httpResponse = (BasicHttpResponse) httpclient.execute(httppost); HttpEntity entity = httpResponse.getEntity(); return entity; }catch (Exception e){ e.printStackTrace(); } 任何人有什么想法我错过了?

Java URLConnection超时

我正在尝试从HTTP URLparsingXML文件。 我想要configuration15秒的超时如果XML获取需要更长的时间,我想报告超时。 出于某种原因,setConnectTimeout和setReadTimeout不起作用。 代码如下: URL url = new URL("http://www.myurl.com/sample.xml"); URLConnection urlConn = url.openConnection(); urlConn.setConnectTimeout(15000); urlConn.setReadTimeout(15000); urlConn.setAllowUserInteraction(false); urlConn.setDoOutput(true); InputStream inStream = urlConn.getInputStream(); InputSource input = new InputSource(inStream); 我正在捕捉SocketTimeoutException。 谢谢Chris