問題

問題

我想問一個問題,如果有人可以幫助我找到解決方案,我將不勝感激。

我使用的是 haproxy 版本 1.4.15

[root@HAProxy tmp]# haproxy -v
HA-Proxy version 1.5.14 2015/07/02
Copyright 2000-2015 Willy Tarreau <[email protected]>.

問題

但是,我遇到一個問題,它每次都會丟棄相同的 HTTP 回應,並且不會轉送回客戶端。

當以下兩個請求傳送到 HA 代理程式時,只有第二個請求的回應會傳送回客戶端。對於第一個,haproxy 正在從後端接收傳回,但在轉送到客戶端時會丟棄 200 OK。

Oct 14 14:31:17 localhost haproxy[11601]: xxx.xxx.xxx.xxx:50114 [14/Oct/2015:14:31:17.193] http-in console/Console 0/0/0/22/25 200 78668 - - --NI 1/1/0/1/0 0/0 "GET /Console/MultiLanguageSvc?Domain=xxxx&SYS=Care&LatestTime=&SVC= HTTP/1.1"
Oct 14 14:31:19 localhost haproxy[11601]: xxx.xxx.xxx.xxx:50115 [14/Oct/2015:14:31:19.225] http-in console/Console 0/0/0/104/104 200 3948 - - --NI 1/1/0/1/0 0/0 "GET /Console/CareLoginSvc?AgentID=91007@xxxx&Password=8BA0FC9468973A97956AA849462406C2&ExtNo=7603&Lang=ja_JP&SVC= HTTP/1.1"

調試日誌顯示任何錯誤跡象。

以下是調試日誌結果的一部分。

/usr/local/haproxy/sbin/haproxy -f /usr/local/haproxy/etc/haproxy.cfg -d -V
Available polling systems :
      epoll : pref=300,  test result OK
       poll : pref=200,  test result OK
     select : pref=150,  test result FAILED
Total: 3 (2 usable), will use epoll.
Using epoll() as the polling mechanism.

** Below are the 200OK that is not sent to the client.**
00000000:iconsole.srvrep[0008:0009]: HTTP/1.1 200 OK
00000000:iconsole.srvhdr[0008:0009]: Cache-Control:
00000000:iconsole.srvhdr[0008:0009]: Pragma:
00000000:iconsole.srvhdr[0008:0009]: Expires: Wed, 31 Dec 1969 23:59:59 GMT
00000000:iconsole.srvhdr[0008:0009]: Content-Type: text/xml;charset=utf-8
00000000:iconsole.srvhdr[0008:0009]: Content-Length: 78470
00000000:iconsole.srvhdr[0008:0009]: Date: Wed, 14 Oct 2015 09:11:24 GMT
00000000:iconsole.srvhdr[0008:0009]: Server: MMCC
00000001:http-in.clicls[0008:0009]
00000001:http-in.closed[0008:0009]

** Below are the 200OK that is sent to the client. **
00000002:iconsole.srvrep[0008:0009]: HTTP/1.1 200 OK
00000002:iconsole.srvhdr[0008:0009]: Cache-Control:
00000002:iconsole.srvhdr[0008:0009]: Pragma:
00000002:iconsole.srvhdr[0008:0009]: Expires: Wed, 31 Dec 1969 23:59:59 GMT
00000002:iconsole.srvhdr[0008:0009]: Content-Type: text/xml;charset=utf-8
00000002:iconsole.srvhdr[0008:0009]: Content-Length: 3751
00000002:iconsole.srvhdr[0008:0009]: Date: Wed, 14 Oct 2015 09:11:26 GMT
00000002:iconsole.srvhdr[0008:0009]: Server: MMCC
00000005:http-in.clicls[0008:0009]
00000005:http-in.closed[0008:0009]

有人猜測為什麼 HA 代理會丟棄某些請求嗎?

相關內容