摘要: 从零开始一个http服务器(六) 多路复用和压力测试 代码地址 : https://github.com/flamedancer/cserver git checkout step6 运行: make clean && make && ./myserver.out 测试 浏览器打开 http://1 阅读全文
posted @ 2018-12-23 16:20 flamedancer 阅读(778) 评论(0) 推荐(1) 编辑
摘要: 从零开始一个http服务器(三) 代码地址 : https://github.com/flamedancer/cserver git checkout step3 运行: gcc request.h request.c response.h response.c main.c tools/utils 阅读全文
posted @ 2018-08-18 19:26 flamedancer 阅读(1864) 评论(0) 推荐(0) 编辑
摘要: 从零开始一个http服务器 (二) 代码地址 : https://github.com/flamedancer/cserver git checkout step2 解析http request 观察收到的http数据 解析 request 的 method url version 解析 heade 阅读全文
posted @ 2018-08-12 11:52 flamedancer 阅读(1273) 评论(0) 推荐(0) 编辑
摘要: 从零开始一个http服务器 (一) 代码地址 : https://github.com/flamedancer/cserver git checkout step1 一个简单的socket server 从helloworld开始 回顾c语言的socket 通信 一个简单的socket server 阅读全文
posted @ 2018-08-12 11:49 flamedancer 阅读(1508) 评论(1) 推荐(0) 编辑
摘要: 从零开始一个http服务器 模拟cgi(五) 代码地址 : https://github.com/flamedancer/cserver git checkout step5 运行: make clean && make && ./myserver.out 测试 浏览器打开 http://127.0 阅读全文
posted @ 2018-10-17 19:11 flamedancer 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 从零开始一个http服务器(四) 代码地址 : https://github.com/flamedancer/cserver git checkout step4 运行: make clean && make && ./myserver.out 测试: 浏览器打开 http://127.0.0.1: 阅读全文
posted @ 2018-09-28 15:23 flamedancer 阅读(694) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 -*-import requestsimport jsonimport sys def test(pinyin): url = 'http://olime.baidu.com/py' data = { 'input' : pinyin, 'inputtype' 阅读全文
posted @ 2017-11-20 17:24 flamedancer 阅读(375) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-import sysclass My24(float): def __new__(cls, num, trace='', last_opt=''): obj = float.__new__(cls, num) return obj def __init_ 阅读全文
posted @ 2017-10-14 14:47 flamedancer 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 原文链接 http://www.ha97.com/5095.html PS:下面是性能测试的主要概念和计算公式,记录下: 一.系统吞度量要素: 一个系统的吞度量(承压能力)与request对CPU的消耗、外部接口、IO等等紧密关联。 单个reqeust 对CPU消耗越高,外部系统接口、IO影响速度越 阅读全文
posted @ 2016-05-05 12:25 flamedancer 阅读(130) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/11774868/svn-checkout-without-restoringup vote4down votefavorite2We have some company middleware and sometimes its ... 阅读全文
posted @ 2015-07-29 11:44 flamedancer 阅读(1850) 评论(0) 推荐(0) 编辑