Regular http:client 发出请求到serverserver 计算 responseserver 响应 response 给 clientPolling:A client requests 发出常规请求 (同上).client每隔n个时间发出request给server (e.g. 0...
分类:
其他好文 时间:
2014-06-27 19:49:36
阅读次数:
171
在virtualenv下安装的第三方库,例如south, requests等,如果想在django中使用,需要先将库添加到settings.py的INSTALLED_APPS中, 以south, requests为例, 1 INSTALLED_APPS = ( 2 'django.con...
分类:
其他好文 时间:
2014-06-26 19:48:47
阅读次数:
250
Host is MasterThis is a fundamental USB concept. There is exactly onemaster in a USB system: the host computer. USB devicesrespond to host requests. U...
分类:
其他好文 时间:
2014-06-26 11:09:27
阅读次数:
237
今天在做一个注册页面的时候遇到了一个验证码图片在页面显示的问题。我用requests从一个url上获取到一张图片, 没有保存到本地, 而是想直接作为render的字典参数,传到页面里进行渲染。因为requests.get(url)得到的response.content是bytes, 无法像jpg等本...
分类:
其他好文 时间:
2014-06-25 17:18:01
阅读次数:
638
sonObjectRequest actuallyaccepts JSONObject as body.From http://arnab.ch/blog/2013/08/asynchronous-http-requests-in-android-using-volley/final String ...
分类:
Web程序 时间:
2014-06-23 06:01:29
阅读次数:
234
补上作业,MariaDB10和MySQL5.6社区版压力测试,见下图:sysbench(10.8.8.43)MySQL5.6和MariaDB10.0.11(10.8.8.100)压力测试参数:sysbench--test=oltp--mysql-table-engine=innodb
--oltp-table-size=10000000--max-requests=0--max-time=900
--num-threads=512--mysql-ho..
分类:
数据库 时间:
2014-06-10 18:52:48
阅读次数:
384
今天早上9:06左右,Windows性能监视器监测到主站的Web服务器出现了CPU
100%的情况,伴随着Requests/Sec的上升。QPS最高冲到了601。IIS的Current Connections也随之上升。
分类:
Web程序 时间:
2014-06-06 09:47:56
阅读次数:
303
这两天要为公司一个项目的服务端写性能测试脚本,其中有一个请求订单号的接口,需要客户端用post请求向服务端发送加密过的token 和订单数据。代码如下:
payload = {'token':token,'order_data':order_data}
r = requests.post(url, data=payload}
但是,服务端返回错误,花了很长时间检查了token和order_d...
分类:
编程语言 时间:
2014-06-05 05:28:23
阅读次数:
839
??
IntentService is a base class for Services
that handle asynchronous requests (expressed as Intents)
on demand. Clients send requests through startService(Intent) calls;
the service is starte...
分类:
其他好文 时间:
2014-06-05 03:03:46
阅读次数:
262
The master DMA arbitration control register (MDMAARBU) controls the priority levels of MDMA requests going out of CorePac. It controls the priority levels used by the L2 memory
controller when sendi...
分类:
其他好文 时间:
2014-06-03 02:39:09
阅读次数:
311