problem:ats prefetching does not work!
configuration:
(1)records.config
CONFIG proxy.config.prefetch.prefetch_enabled INT 1
(2)prefetch.config
prefetch_children 192.168.0.0 - 192.168.255.255, 216.1.2.3
(3)squid.log
can not see any information about connections from 127.0.0.1
(4)traffic.out
It seem that ats does not perform tcp communications on prefetching although
prefetch requests are created!
logs in detail:
[Jun 23 09:17:44.196] Server {0x402748a0} DEBUG: (PrefetchPlugin) Received
TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK event (sm = 0x0x44cef3c0)
[Jun 23 09:17:44.196] Server {0x402748a0} DEBUG: (PrefetchPlugin) Cache lookup
did not succeed
[Jun 23 09:17:44.203] Server {0x402748a0} DEBUG: (PrefetchPlugin) Received
TS_EVENT_HTTP_READ_RESPONSE_HDR event (sm = 0x0x44cef3c0)
[Jun 23 09:17:44.203] Server {0x402748a0} DEBUG: (PrefetchParser) Checking
response for request from 192.168.0.228
[Jun 23 09:17:44.203] Server {0x402748a0} DEBUG: (PrefetchParserCT) Content
type is text/html
[Jun 23 09:17:44.203] Server {0x402748a0} DEBUG: (PrefetchParser) Created:
transform for http://192.168.0.184/
[Jun 23 09:17:44.203] Server {0x402748a0} DEBUG: (PrefetchParser) Adding
Prefetch Parser 0x0xa7a11b8
+++++++++ Request Header given for Prefetch Parser +++++++++
-- State Machine Id: 0
GET http://192.168.0.184/ HTTP/1.1
Host: 192.168.3.163:3128
Connection: keep-alive
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/39.0.2171.71 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
[Jun 23 09:17:44.204] Server {0x402748a0} DEBUG: (PrefetchParser)
handle_event() writing 1431 bytes to output
+++++++++ Request Header from Prefetch Blaster +++++++++
-- State Machine Id: 0
GET http://192.168.0.184/logo-websvn.png HTTP/1.1
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/39.0.2171.71 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Proxy-Connection: close
+++++++++ Request Header from Prefetch Blaster +++++++++
-- State Machine Id: 0
GET http://192.168.0.184/mantis.gif HTTP/1.1
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/39.0.2171.71 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Proxy-Connection: close
+++++++++ Request Header from Prefetch Blaster +++++++++
-- State Machine Id: 0
GET http://192.168.0.184/testlink.jpg HTTP/1.1
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/39.0.2171.71 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Proxy-Connection: close
+++++++++ Request Header from Prefetch Blaster +++++++++
-- State Machine Id: 0
GET http://192.168.0.184/knowledge.jpg HTTP/1.1
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/39.0.2171.71 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Proxy-Connection: close
[Jun 23 09:17:44.204] Server {0x402748a0} DEBUG: (PrefetchBlaster) Cache lookup
failed for http://192.168.0.184/logo-websvn.png
[Jun 23 09:17:44.204] Server {0x402748a0} DEBUG: (PrefetchBlasterUrlList) found
1 urls in the list
[Jun 23 09:17:44.204] Server {0x402748a0} DEBUG: (PrefetchBlaster) Cache lookup
failed for http://192.168.0.184/mantis.gif
[Jun 23 09:17:44.204] Server {0x402748a0} DEBUG: (PrefetchBlasterUrlList) found
1 urls in the list
[Jun 23 09:17:44.204] Server {0x402748a0} DEBUG: (PrefetchBlaster) Cache lookup
failed for http://192.168.0.184/testlink.jpg
[Jun 23 09:17:44.205] Server {0x402748a0} DEBUG: (PrefetchBlasterUrlList) found
1 urls in the list
[Jun 23 09:17:44.205] Server {0x402748a0} DEBUG: (PrefetchBlaster) Cache lookup
failed for http://192.168.0.184/knowledge.jpg
[Jun 23 09:17:44.205] Server {0x402748a0} DEBUG: (PrefetchBlasterUrlList) found
1 urls in the list
[Jun 23 09:17:44.205] Server {0x402748a0} DEBUG: (Prefetch) got write_complete
0xa7a11b8
[Jun 23 09:17:44.206] Server {0x402748a0} DEBUG: (PrefetchParser)
PrefetchTransform free(): 1431
[Jun 23 09:17:44.206] Server {0x402748a0} DEBUG: (Prefetch) Freeing after
closed 0xa7a11b8
[Jun 23 09:17:44.206] Server {0x402748a0} DEBUG: (PrefetchParserURLs) Unique
URLs 0x0xa7a11b8 (http://192.168.0.184/):
[Jun 23 09:17:44.206] Server {0x402748a0} DEBUG: (PrefetchParserURLs)
(0x0xa7a11b8) 9: http://192.168.0.184/mantis.gif
[Jun 23 09:17:44.206] Server {0x402748a0} DEBUG: (PrefetchParserURLs)
(0x0xa7a11b8) 21: http://192.168.0.184/logo-websvn.png
[Jun 23 09:17:44.206] Server {0x402748a0} DEBUG: (PrefetchParserURLs)
(0x0xa7a11b8) 41: http://192.168.0.184/testlink.jpg
[Jun 23 09:17:44.206] Server {0x402748a0} DEBUG: (PrefetchParserURLs)
(0x0xa7a11b8) 46: http://192.168.0.184/knowledge.jpg
[Jun 23 09:17:44.206] Server {0x402748a0} DEBUG: (PrefetchParserURLs) Number of
embedded objects extracted for http://192.168.0.184/: 4