摘要: Nagle算法是以他的发明人John Nagle的名字命名的,它用于自动连接许多的小缓冲器消息;这一过程(称为nagling)通过减少必须发送包的个数来增加网络软件系统的效率。Nagle算法于1984年定义为福特航空和通信公司IP/TCP拥塞控制方法,这是福特经营的最早的专用TCP/IP 网络减少拥 阅读全文
posted @ 2016-12-29 21:55 hdu胡恩超 阅读(2569) 评论(0) 推荐(0) 编辑
摘要: 整个流程是 1 :request的 header里加上: 2: 服务器监听 ‘Upgrade’,然后返回: 3:然后就可以通过socket相互消息了。记住socket.end一旦执行,就会断开这次的tcp链接了。 阅读全文
posted @ 2016-12-29 18:58 hdu胡恩超 阅读(691) 评论(0) 推荐(0) 编辑
摘要: You just need to call socket.write with the appropriate HTTP syntax as plain text along these lines (from wikipedia): Use \r\n line separators. After 阅读全文
posted @ 2016-12-29 16:48 hdu胡恩超 阅读(159) 评论(0) 推荐(0) 编辑
摘要: HTTP Upgrade is used to indicate a preference or requirement to switch to a different version of HTTP or to another protocol, if possible: The Upgrade 阅读全文
posted @ 2016-12-29 16:46 hdu胡恩超 阅读(513) 评论(0) 推荐(0) 编辑