赞 | 0 |
VIP | 2 |
好人卡 | 27 |
积分 | 1 |
经验 | 26327 |
最后登录 | 2019-10-13 |
在线时间 | 953 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 110
- 在线时间
- 953 小时
- 注册时间
- 2007-4-25
- 帖子
- 805
|
我这里和 6R 主机进行 TCP/IP、ICMP 通信倒是很稳定,但 HTTP 就经常出问题。后来做了一个测试:- GET http://rpg.blue/thread-182633-1-1.html HTTP/1.1
- Host: rpg.blue
- Connection: close
复制代码 直接发送以上 HTTP 请求,响应正常。第一次打开 Chrome(没有会话 Cookie 时),发送:- GET http://rpg.blue/thread-182633-1-1.html HTTP/1.1
- Host: rpg.blue
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
- Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
- Accept-Encoding: gzip,deflate,sdch
- Accept-Language: en-US,en;q=0.8
- Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
- Cookie: muNv_2132_lastvisit=1306079773; __utmz=217416005.1306083386.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); muNv_2132_auth=2874TfyMCN3vG7g5cIMgpQJjBsfK%2F%2BqJPgpzpvKNi6FKRiDJ0JrE6wqZIBkfutrUk4w5hMiWR0q%2F%2FQQmrs7b0kXjwQ; QlQo_lastvisit=1306079793; QlQo_sid=8hDkNf; QlQo_lastact=1306083393%09uc.php%09; muNv_2132_mrd=%E7%B4%AB%E8%8B%8F%09%E5%B0%8F%E8%84%89%E5%AD%90%09%E5%85%AD%E8%84%89%E7%A5%9E%E5%89%91; muNv_2132_ulastactivity=4048SbMVENXFkVIiM4cWDeJuM0gj5MEVS358ko5RXq%2BF6lxUKH46; muNv_2132_fid25=1306081595; muNv_2132_visitedfid=25D27D18D75D48; muNv_2132_sendmail=1; muNv_2132_oldtopics=182633D182633D168131; muNv_2132_onlineusernum=452; muNv_2132_forum_lastvisit=D_48_1306083787D_18_1306083949D_75_1306083951D_27_1306085483D_25_1306085962; muNv_2132_sid=zMmU8w; __utma=217416005.1761745809.1306083386.1306085962.1306085974.14; __utmb=217416005.1.10.1306085974; muNv_2132_smile=1D1; muNv_2132_lastact=1306085963%09home.php%09spacecp; Hm_lvt_0b7a011283c9c21ce8b224f89cafa69d=1306085975682
复制代码 响应正常。然后再随意浏览一些页面,多了一些会话 Cookie 后,发送:- GET http://rpg.blue/thread-182633-1-1.html HTTP/1.1
- Host: rpg.blue
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
- Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
- Accept-Encoding: gzip,deflate,sdch
- Accept-Language: en-US,en;q=0.8
- Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
- Cookie: muNv_2132_lastvisit=1306079773; __utmz=217416005.1306083386.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); muNv_2132_auth=2874TfyMCN3vG7g5cIMgpQJjBsfK%2F%2BqJPgpzpvKNi6FKRiDJ0JrE6wqZIBkfutrUk4w5hMiWR0q%2F%2FQQmrs7b0kXjwQ; QlQo_lastvisit=1306079793; QlQo_sid=8hDkNf; QlQo_lastact=1306083393%09uc.php%09; muNv_2132_mrd=%E7%B4%AB%E8%8B%8F%09%E5%B0%8F%E8%84%89%E5%AD%90%09%E5%85%AD%E8%84%89%E7%A5%9E%E5%89%91; muNv_2132_ulastactivity=4048SbMVENXFkVIiM4cWDeJuM0gj5MEVS358ko5RXq%2BF6lxUKH46; muNv_2132_oldtopics=168131; muNv_2132_onlineusernum=468; muNv_2132_sendmail=1; muNv_2132_forum_lastvisit=D_48_1306083787D_18_1306083949D_75_1306083951D_25_1306084517D_27_1306085483; muNv_2132_visitedfid=27D25D18D75D48; muNv_2132_sid=zMmU8w; __utma=217416005.1761745809.1306083386.1306085328.1306085496.10; __utmc=217416005; __utmb=217416005.1.10.1306085496; muNv_2132_smile=1D1; muNv_2132_lastact=1306085485%09home.php%09spacecp; Hm_lpvt_0b7a011283c9c21ce8b224f89cafa69d=1306085496970; Hm_lvt_0b7a011283c9c21ce8b224f89cafa69d=1306085496970
复制代码 就没半天响应了,最后拿到一个 HTTP 504,说明网关响应了,upstream 的后端没响应。第二段请求和第三段的区别仅仅是 Cookie 而已……应用层的配置还是要继续看看。
|
|