随笔分类 -  转载

摘要:https://mp.weixin.qq.com/s/xo4XfJXl8WtenxaJwR14oQ 阅读全文
posted @ 2019-08-05 10:39 tlmn2008 阅读(92) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/shootyou/article/details/6622226 阅读全文
posted @ 2019-06-24 10:50 tlmn2008 阅读(104) 评论(0) 推荐(0)
摘要:维持一个tcp连接需要占用哪些资源,下面就总结一下最近学习的内容,不足之处,请读者多多指正。 一个tcp连接需要:1,socket文件描述符;2,IP地址;3,端口;4,内存 TCP连接的四元组:源IP 源端口 目标IP 目标端口,这四元组构成了一个唯一的tcp连接。 对于一台服务器,我们假设只有一 阅读全文
posted @ 2019-04-22 09:54 tlmn2008 阅读(955) 评论(0) 推荐(0)
摘要:最近在研究linux服务器下TCP的最大连接数问题,因为系统为每个TCP连接都要创建一个socket句柄,而每个socket句柄同时也是一个文件句柄,所以就专门对linux下文件描述符的种种限制作了一些深入的研究: 1,ulimit -n 65556 ulimit -n是用来查看用户单一进程可同时打 阅读全文
posted @ 2019-04-22 09:53 tlmn2008 阅读(538) 评论(0) 推荐(0)
摘要:f=open(filepath,'r') 修改为 f=open(filepath,'rb') 问题得以解决! 这两个方式的区别在于对‘0x1A’和‘0x0A’的处理,下面转载: 第一,使用'r'的时候如果碰到'0x1A',就会视为文件结束,这就是EOF。使用'rb'则不存在这个问题。即,如果你用二进 阅读全文
posted @ 2019-01-22 15:17 tlmn2008 阅读(2650) 评论(0) 推荐(0)
摘要:http://www.51testing.com/html/88/n-3718188.html 阅读全文
posted @ 2018-07-07 15:22 tlmn2008 阅读(85) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/yin138/article/details/52765089 阅读全文
posted @ 2018-06-07 09:10 tlmn2008 阅读(69) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/baidu_zhongce/article/details/46683323 阅读全文
posted @ 2018-06-05 09:11 tlmn2008 阅读(96) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/wuxiaobingandbob/article/details/78642020?locationNum=1&fps=1 阅读全文
posted @ 2018-05-11 11:19 tlmn2008 阅读(106) 评论(0) 推荐(0)
摘要:http://www.ruanyifeng.com/blog/2017/05/websocket.html 阅读全文
posted @ 2018-05-08 10:07 tlmn2008 阅读(99) 评论(0) 推荐(0)
摘要:plain.html index.html showtime.py 阅读全文
posted @ 2018-04-27 16:57 tlmn2008 阅读(660) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/chengmo/archive/2010/10/02/1841355.html 阅读全文
posted @ 2018-03-05 14:26 tlmn2008 阅读(106) 评论(0) 推荐(0)