1.增大proxy_read_timeout;proxy_send_timeout的参数。
分类:
其他好文 时间:
2015-01-12 16:49:31
阅读次数:
153
#! /usr/bin/expect set timeout 30spawn ssh -l root 192.168.239.148 expect "password:"send "123456\r"interact1. [#!/usr/bin/expect] 这一行告诉操作系统脚本里的代码使用那....
分类:
系统相关 时间:
2015-01-12 10:38:41
阅读次数:
179
今天服务器上传大文件,服务器php一直没有响应,响应为0KB,经排查发现是lighttpd的超时设置问题server.max-keep-alive-idle = 5server.max-read-idle = 60server.read-timeout = 0server.max-connectio...
分类:
Web程序 时间:
2015-01-10 13:50:18
阅读次数:
175
Akka 设置延迟执行的Future_Patterns. after akka.pattern.Patterns.after makes it easy to complete a Future with a value or exception after a timeout. 代码如下, package?com.usoft;
import?akka.acto...
分类:
其他好文 时间:
2015-01-09 21:04:52
阅读次数:
272
设置了runt time setting中的internet protocol-preferences中的advaced区域有一个winlnet replay instead of sockets选项,选项后再回放就成功了。 kernzhang解释如下(这里谢谢kernzhang): 这个问题很有意思!...
分类:
其他好文 时间:
2015-01-09 17:40:09
阅读次数:
163
#!/bin/bashexpect -c " set timeout 1000 spawn /bin/su - root expect \":" send \"12360.cn\n\" interact"
分类:
系统相关 时间:
2015-01-08 19:50:39
阅读次数:
237
Akka Actor_Future的使用 常见的是通过Actor的tell方法给另外一个actor发送消息,但是actor 和 future怎么交互,发送消息,如下, Future<Object>?future?=?Patterns.ask(a,?"are?you?ready?",?timeout);...
分类:
其他好文 时间:
2015-01-08 18:19:36
阅读次数:
261
今天在做一个数据导入,超时时间一直设置不对,经过几轮查询以后,才知道需要做如下多环节的配置。Nginx需要配置如下超时配置 fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;如果使用的是Nginx的代理服务,需要添加如下配置 location / {
p...
分类:
Web程序 时间:
2015-01-08 13:28:52
阅读次数:
161
好久没碰jquery的ajax了,竟然不记得语法。遂记录一二,增强印象。$.ajax( { type:'post'/'get' ,//默认为get, 其他http方法例如put/delete不是所有浏览器都支持 url:'xxxx',//请求的地址 timeout:2...
分类:
Web程序 时间:
2015-01-07 20:42:27
阅读次数:
149
importpycurlfromurllibimporturlencodech=pycurl.Curl()timeout=360ch.setopt(pycurl.CONNECTTIMEOUT,timeout)ch.setopt(pycurl.URL,‘http://url‘)post_data=[(‘file1‘,(pycurl.FORM_FILE,FILENAME))...]ch.setopt(pycurl.HTTPPOST,post_data)b=StringIO.StringIO()ch.setopt(..
分类:
Web程序 时间:
2015-01-06 15:45:32
阅读次数:
136