Re: [问题] AsynchronousSocketChannel 异常缓慢

楼主: gasbomb (虚空雷神兽)   2019-12-13 16:48:02
推 tw11509: 我本机跑了一下第二版,没遇到你说的问题,client感觉不 12/12 11:14
→ tw11509: 出延迟 12/12 11:14
推 tw11509: 你可能进debug mode才能厘清原因 12/12 11:24
今天把 ptt 跟一些 mud 站的输出接来看
搞懂问题出在哪了
因为我没有回传 \n
刚好我用 mudlet 测试, 他会把 server 的讯息 buffer 住
等到接到 \n 或是 300ms 之后才会输出到萤幕上
谢谢 tw11509 热心帮忙测试, 看到你的推文才破除了我的盲点
作者: tw11509 (John-117)   2018-12-12 11:14:00
我本机跑了一下第二版,没遇到你说的问题,client感觉不出延迟你可能进debug mode才能厘清原因
作者: locklose (允)   2019-12-27 13:23:00
debug 给推个人经验:AWS load balancer allows /r/n , /r , /n inhttp request.Google Load Balance only allow /r/n in HTTP1.1 withcontent-length.if use other symbols, google require client need support http1.1 full feature (chunk read and query).

Links booklink

Contact Us: admin [ a t ] ucptt.com