[jira] [Comment Edited] (TS-2895) memory allocation failure
[ https://issues.apache.org/jira/browse/TS-2895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14060009#comment-14060009 ] Yunkai Zhang edited comment on TS-2895 at 7/13/14 5:59 AM: --- According the system log, it's irrelevant to reclaimable freelist. The failure was caused by {{ats_memalign()}}. There are so many reasons could cause this issue: 1) The system memory is ran out? 2) If not, what cause so many memory fragmentations? To diagnose, we need more context. was (Author: yunkai): According the system log, it's irrelevant to reclaimable freelist. The failure was caused by {{ats_memalign()}}. memory allocation failure - Key: TS-2895 URL: https://issues.apache.org/jira/browse/TS-2895 Project: Traffic Server Issue Type: Test Components: Cache, Clustering Reporter: wangjun Assignee: Zhao Yongming Labels: crash Fix For: sometime Attachments: screenshot-1.jpg, screenshot-2.jpg In this version(ats 4.0.2), I encountered a bug (memory allocation failure), Look at the system log, screenshots below(screenshot-1.jpg). Look at the program logs, screenshots below((screenshot-2.jpg). Please help me, thank you. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (TS-2930) Missing hostname in ts.client_request.get_url()
[ https://issues.apache.org/jira/browse/TS-2930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14060034#comment-14060034 ] Nikolai Gorchilov commented on TS-2930: --- Plugin config: tslua.so lib/plugins/test.lua cacheurl.so Cache config: http://[\/](yimg\.com)/(.) http://$1.internal/$2 proxy.config.url_remap.pristine_host_hdr is 0 Missing hostname in ts.client_request.get_url() --- Key: TS-2930 URL: https://issues.apache.org/jira/browse/TS-2930 Project: Traffic Server Issue Type: Bug Components: Lua, Plugins, TS API Affects Versions: 5.0.0 Reporter: Nikolai Gorchilov Assignee: Kit Chan Fix For: 5.1.0 In Linux TPROXY forwarding mode ts.client_request.get_uri() omits hostname from the returned url - responds with http:///pathname?parameters; instead of http://hostname/pathname?parameters;. This happens in the context of early state hooks up to and including TS_HTTP_POST_REMAP_HOOK. In case of cacheurl.so rewrite on the URL, hostname reamains empty even after post_remap. Here're the steps to reproduce the problem - a global lua plugin (plugins.config): ==[cut]== function do_global_txn_start() print('==[cut]==') print ('do_global_txt_start: ' .. ts.client_request.get_url()) end function do_global_txn_close() print ('do_global_txn_close: ' .. ts.client_request.get_url()) print('==[cut]==') end function do_global_os_dns() print ('do_global_os_dns: ' .. ts.client_request.get_url()) end function do_global_pre_remap() print ('do_global_pre_remap: ' .. ts.client_request.get_url()) end function do_global_post_remap() print ('do_global_post_remap: ' .. ts.client_request.get_url()) end function do_global_read_request() print ('do_global_read_request: ' .. ts.client_request.get_url()) end function do_global_send_request() print ('do_global_send_request: ' .. ts.client_request.get_url()) end function do_global_read_response() print ('do_global_read_response: ' .. ts.client_request.get_url()) end function do_global_send_response() print ('do_global_send_response: ' .. ts.client_request.get_url()) end function do_global_cache_lookup_complete() print ('do_global_cache_lookup_complete: ' .. ts.client_request.get_url()) end function do_global_read_cache() print ('do_global_read_cache: ' .. ts.client_request.get_url()) end Requesting same URL - http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png - in 4 different scenarios: 1. empty cache (MISS) without cacheurl.so activated 2. HIT request without cacheurl.so activated 3. empty cache (MISS) with cacheurl.so activated 4. HIT request with cacheurl.so activated cacheurl.config consists the following: ^http://[^\/]*(yimg\.com)/(.*)http://$1.internal/$2 Here's my traffic.out output: 1. MISS without cacheurl.so ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_os_dns: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_request: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_read_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 2. HIT without cacheurl.so: ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_read_cache: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 3. MISS with cacheurl.so: ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap:
[jira] [Comment Edited] (TS-2930) Missing hostname in ts.client_request.get_url()
[ https://issues.apache.org/jira/browse/TS-2930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14060034#comment-14060034 ] Nikolai Gorchilov edited comment on TS-2930 at 7/13/14 7:51 AM: Plugin config: tslua.so lib/plugins/test.lua cacheurl.so Cache config: http://[^\/]+(yimg\.com)/(.) http://$1.internal/$2 proxy.config.url_remap.pristine_host_hdr is 0 was (Author: ngorchilov): Plugin config: tslua.so lib/plugins/test.lua cacheurl.so Cache config: http://[\/](yimg\.com)/(.) http://$1.internal/$2 proxy.config.url_remap.pristine_host_hdr is 0 Missing hostname in ts.client_request.get_url() --- Key: TS-2930 URL: https://issues.apache.org/jira/browse/TS-2930 Project: Traffic Server Issue Type: Bug Components: Lua, Plugins, TS API Affects Versions: 5.0.0 Reporter: Nikolai Gorchilov Assignee: Kit Chan Fix For: 5.1.0 In Linux TPROXY forwarding mode ts.client_request.get_uri() omits hostname from the returned url - responds with http:///pathname?parameters; instead of http://hostname/pathname?parameters;. This happens in the context of early state hooks up to and including TS_HTTP_POST_REMAP_HOOK. In case of cacheurl.so rewrite on the URL, hostname reamains empty even after post_remap. Here're the steps to reproduce the problem - a global lua plugin (plugins.config): ==[cut]== function do_global_txn_start() print('==[cut]==') print ('do_global_txt_start: ' .. ts.client_request.get_url()) end function do_global_txn_close() print ('do_global_txn_close: ' .. ts.client_request.get_url()) print('==[cut]==') end function do_global_os_dns() print ('do_global_os_dns: ' .. ts.client_request.get_url()) end function do_global_pre_remap() print ('do_global_pre_remap: ' .. ts.client_request.get_url()) end function do_global_post_remap() print ('do_global_post_remap: ' .. ts.client_request.get_url()) end function do_global_read_request() print ('do_global_read_request: ' .. ts.client_request.get_url()) end function do_global_send_request() print ('do_global_send_request: ' .. ts.client_request.get_url()) end function do_global_read_response() print ('do_global_read_response: ' .. ts.client_request.get_url()) end function do_global_send_response() print ('do_global_send_response: ' .. ts.client_request.get_url()) end function do_global_cache_lookup_complete() print ('do_global_cache_lookup_complete: ' .. ts.client_request.get_url()) end function do_global_read_cache() print ('do_global_read_cache: ' .. ts.client_request.get_url()) end Requesting same URL - http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png - in 4 different scenarios: 1. empty cache (MISS) without cacheurl.so activated 2. HIT request without cacheurl.so activated 3. empty cache (MISS) with cacheurl.so activated 4. HIT request with cacheurl.so activated cacheurl.config consists the following: ^http://[^\/]*(yimg\.com)/(.*)http://$1.internal/$2 Here's my traffic.out output: 1. MISS without cacheurl.so ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_os_dns: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_request: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_read_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 2. HIT without cacheurl.so: ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_read_cache: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close:
[jira] [Commented] (TS-2930) Missing hostname in ts.client_request.get_url()
[ https://issues.apache.org/jira/browse/TS-2930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14060038#comment-14060038 ] ASF subversion and git services commented on TS-2930: - Commit ad8534ec3647e0a0732ef13314a4c81c6b12871f in trafficserver's branch refs/heads/master from [~kichan] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=ad8534e ] TS-2930: missing hostname in ts.client_request.get_url() in lua plugin Missing hostname in ts.client_request.get_url() --- Key: TS-2930 URL: https://issues.apache.org/jira/browse/TS-2930 Project: Traffic Server Issue Type: Bug Components: Lua, Plugins, TS API Affects Versions: 5.0.0 Reporter: Nikolai Gorchilov Assignee: Kit Chan Fix For: 5.1.0 In Linux TPROXY forwarding mode ts.client_request.get_uri() omits hostname from the returned url - responds with http:///pathname?parameters; instead of http://hostname/pathname?parameters;. This happens in the context of early state hooks up to and including TS_HTTP_POST_REMAP_HOOK. In case of cacheurl.so rewrite on the URL, hostname reamains empty even after post_remap. Here're the steps to reproduce the problem - a global lua plugin (plugins.config): ==[cut]== function do_global_txn_start() print('==[cut]==') print ('do_global_txt_start: ' .. ts.client_request.get_url()) end function do_global_txn_close() print ('do_global_txn_close: ' .. ts.client_request.get_url()) print('==[cut]==') end function do_global_os_dns() print ('do_global_os_dns: ' .. ts.client_request.get_url()) end function do_global_pre_remap() print ('do_global_pre_remap: ' .. ts.client_request.get_url()) end function do_global_post_remap() print ('do_global_post_remap: ' .. ts.client_request.get_url()) end function do_global_read_request() print ('do_global_read_request: ' .. ts.client_request.get_url()) end function do_global_send_request() print ('do_global_send_request: ' .. ts.client_request.get_url()) end function do_global_read_response() print ('do_global_read_response: ' .. ts.client_request.get_url()) end function do_global_send_response() print ('do_global_send_response: ' .. ts.client_request.get_url()) end function do_global_cache_lookup_complete() print ('do_global_cache_lookup_complete: ' .. ts.client_request.get_url()) end function do_global_read_cache() print ('do_global_read_cache: ' .. ts.client_request.get_url()) end Requesting same URL - http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png - in 4 different scenarios: 1. empty cache (MISS) without cacheurl.so activated 2. HIT request without cacheurl.so activated 3. empty cache (MISS) with cacheurl.so activated 4. HIT request with cacheurl.so activated cacheurl.config consists the following: ^http://[^\/]*(yimg\.com)/(.*)http://$1.internal/$2 Here's my traffic.out output: 1. MISS without cacheurl.so ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_os_dns: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_request: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_read_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 2. HIT without cacheurl.so: ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_read_cache: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 3. MISS with cacheurl.so: ==[cut]== do_global_txt_start: /
[jira] [Commented] (TS-2930) Missing hostname in ts.client_request.get_url()
[ https://issues.apache.org/jira/browse/TS-2930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14060042#comment-14060042 ] Kit Chan commented on TS-2930: -- Can you also try with my latest change and see if the problem goes away? Thanks. Missing hostname in ts.client_request.get_url() --- Key: TS-2930 URL: https://issues.apache.org/jira/browse/TS-2930 Project: Traffic Server Issue Type: Bug Components: Lua, Plugins, TS API Affects Versions: 5.0.0 Reporter: Nikolai Gorchilov Assignee: Kit Chan Fix For: 5.1.0 In Linux TPROXY forwarding mode ts.client_request.get_uri() omits hostname from the returned url - responds with http:///pathname?parameters; instead of http://hostname/pathname?parameters;. This happens in the context of early state hooks up to and including TS_HTTP_POST_REMAP_HOOK. In case of cacheurl.so rewrite on the URL, hostname reamains empty even after post_remap. Here're the steps to reproduce the problem - a global lua plugin (plugins.config): ==[cut]== function do_global_txn_start() print('==[cut]==') print ('do_global_txt_start: ' .. ts.client_request.get_url()) end function do_global_txn_close() print ('do_global_txn_close: ' .. ts.client_request.get_url()) print('==[cut]==') end function do_global_os_dns() print ('do_global_os_dns: ' .. ts.client_request.get_url()) end function do_global_pre_remap() print ('do_global_pre_remap: ' .. ts.client_request.get_url()) end function do_global_post_remap() print ('do_global_post_remap: ' .. ts.client_request.get_url()) end function do_global_read_request() print ('do_global_read_request: ' .. ts.client_request.get_url()) end function do_global_send_request() print ('do_global_send_request: ' .. ts.client_request.get_url()) end function do_global_read_response() print ('do_global_read_response: ' .. ts.client_request.get_url()) end function do_global_send_response() print ('do_global_send_response: ' .. ts.client_request.get_url()) end function do_global_cache_lookup_complete() print ('do_global_cache_lookup_complete: ' .. ts.client_request.get_url()) end function do_global_read_cache() print ('do_global_read_cache: ' .. ts.client_request.get_url()) end Requesting same URL - http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png - in 4 different scenarios: 1. empty cache (MISS) without cacheurl.so activated 2. HIT request without cacheurl.so activated 3. empty cache (MISS) with cacheurl.so activated 4. HIT request with cacheurl.so activated cacheurl.config consists the following: ^http://[^\/]*(yimg\.com)/(.*)http://$1.internal/$2 Here's my traffic.out output: 1. MISS without cacheurl.so ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_os_dns: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_request: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_read_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 2. HIT without cacheurl.so: ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_read_cache: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 3. MISS with cacheurl.so: ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap:
[jira] [Commented] (TS-2930) Missing hostname in ts.client_request.get_url()
[ https://issues.apache.org/jira/browse/TS-2930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14060047#comment-14060047 ] portl4t commented on TS-2930: - The way as I see, the whole url always comes from m_url_cached.m_url_impl, but the two members 'm_ptr_host' and 'm_ptr_port' can only be set in setup_for_remap or in TSHttpTxnEffectiveUrlStringGet [UrlPrintHack(...)], and then both get_url() and get_url_host() can work well, may be we should ensure the two members had been set before we get the whole url or host. Missing hostname in ts.client_request.get_url() --- Key: TS-2930 URL: https://issues.apache.org/jira/browse/TS-2930 Project: Traffic Server Issue Type: Bug Components: Lua, Plugins, TS API Affects Versions: 5.0.0 Reporter: Nikolai Gorchilov Assignee: Kit Chan Fix For: 5.1.0 In Linux TPROXY forwarding mode ts.client_request.get_uri() omits hostname from the returned url - responds with http:///pathname?parameters; instead of http://hostname/pathname?parameters;. This happens in the context of early state hooks up to and including TS_HTTP_POST_REMAP_HOOK. In case of cacheurl.so rewrite on the URL, hostname reamains empty even after post_remap. Here're the steps to reproduce the problem - a global lua plugin (plugins.config): ==[cut]== function do_global_txn_start() print('==[cut]==') print ('do_global_txt_start: ' .. ts.client_request.get_url()) end function do_global_txn_close() print ('do_global_txn_close: ' .. ts.client_request.get_url()) print('==[cut]==') end function do_global_os_dns() print ('do_global_os_dns: ' .. ts.client_request.get_url()) end function do_global_pre_remap() print ('do_global_pre_remap: ' .. ts.client_request.get_url()) end function do_global_post_remap() print ('do_global_post_remap: ' .. ts.client_request.get_url()) end function do_global_read_request() print ('do_global_read_request: ' .. ts.client_request.get_url()) end function do_global_send_request() print ('do_global_send_request: ' .. ts.client_request.get_url()) end function do_global_read_response() print ('do_global_read_response: ' .. ts.client_request.get_url()) end function do_global_send_response() print ('do_global_send_response: ' .. ts.client_request.get_url()) end function do_global_cache_lookup_complete() print ('do_global_cache_lookup_complete: ' .. ts.client_request.get_url()) end function do_global_read_cache() print ('do_global_read_cache: ' .. ts.client_request.get_url()) end Requesting same URL - http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png - in 4 different scenarios: 1. empty cache (MISS) without cacheurl.so activated 2. HIT request without cacheurl.so activated 3. empty cache (MISS) with cacheurl.so activated 4. HIT request with cacheurl.so activated cacheurl.config consists the following: ^http://[^\/]*(yimg\.com)/(.*)http://$1.internal/$2 Here's my traffic.out output: 1. MISS without cacheurl.so ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_os_dns: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_request: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_read_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 2. HIT without cacheurl.so: ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_read_cache: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 3. MISS with
[jira] [Comment Edited] (TS-2930) Missing hostname in ts.client_request.get_url()
[ https://issues.apache.org/jira/browse/TS-2930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14060115#comment-14060115 ] Nikolai Gorchilov edited comment on TS-2930 at 7/13/14 2:19 PM: [~kichan], I can confirm your patch is fixing the issue. Now ts.client_request.get_url() and ts.client_request.get_url_host() behave as expected always. was (Author: ngorchilov): [~kichan], I can confirm your patch is fixing the issue. Now ts.client_request.get_url() and ts.client_request.get_url_hsot() behave as expected always. Missing hostname in ts.client_request.get_url() --- Key: TS-2930 URL: https://issues.apache.org/jira/browse/TS-2930 Project: Traffic Server Issue Type: Bug Components: Lua, Plugins, TS API Affects Versions: 5.0.0 Reporter: Nikolai Gorchilov Assignee: Kit Chan Fix For: 5.1.0 In Linux TPROXY forwarding mode ts.client_request.get_uri() omits hostname from the returned url - responds with http:///pathname?parameters; instead of http://hostname/pathname?parameters;. This happens in the context of early state hooks up to and including TS_HTTP_POST_REMAP_HOOK. In case of cacheurl.so rewrite on the URL, hostname reamains empty even after post_remap. Here're the steps to reproduce the problem - a global lua plugin (plugins.config): ==[cut]== function do_global_txn_start() print('==[cut]==') print ('do_global_txt_start: ' .. ts.client_request.get_url()) end function do_global_txn_close() print ('do_global_txn_close: ' .. ts.client_request.get_url()) print('==[cut]==') end function do_global_os_dns() print ('do_global_os_dns: ' .. ts.client_request.get_url()) end function do_global_pre_remap() print ('do_global_pre_remap: ' .. ts.client_request.get_url()) end function do_global_post_remap() print ('do_global_post_remap: ' .. ts.client_request.get_url()) end function do_global_read_request() print ('do_global_read_request: ' .. ts.client_request.get_url()) end function do_global_send_request() print ('do_global_send_request: ' .. ts.client_request.get_url()) end function do_global_read_response() print ('do_global_read_response: ' .. ts.client_request.get_url()) end function do_global_send_response() print ('do_global_send_response: ' .. ts.client_request.get_url()) end function do_global_cache_lookup_complete() print ('do_global_cache_lookup_complete: ' .. ts.client_request.get_url()) end function do_global_read_cache() print ('do_global_read_cache: ' .. ts.client_request.get_url()) end Requesting same URL - http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png - in 4 different scenarios: 1. empty cache (MISS) without cacheurl.so activated 2. HIT request without cacheurl.so activated 3. empty cache (MISS) with cacheurl.so activated 4. HIT request with cacheurl.so activated cacheurl.config consists the following: ^http://[^\/]*(yimg\.com)/(.*)http://$1.internal/$2 Here's my traffic.out output: 1. MISS without cacheurl.so ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_os_dns: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_request: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_read_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 2. HIT without cacheurl.so: ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_read_cache: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png
[jira] [Commented] (TS-2930) Missing hostname in ts.client_request.get_url()
[ https://issues.apache.org/jira/browse/TS-2930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14060115#comment-14060115 ] Nikolai Gorchilov commented on TS-2930: --- [~kichan], I can confirm your patch is fixing the issue. Now ts.client_request.get_url() and ts.client_request.get_url_hsot() behave as expected always. Missing hostname in ts.client_request.get_url() --- Key: TS-2930 URL: https://issues.apache.org/jira/browse/TS-2930 Project: Traffic Server Issue Type: Bug Components: Lua, Plugins, TS API Affects Versions: 5.0.0 Reporter: Nikolai Gorchilov Assignee: Kit Chan Fix For: 5.1.0 In Linux TPROXY forwarding mode ts.client_request.get_uri() omits hostname from the returned url - responds with http:///pathname?parameters; instead of http://hostname/pathname?parameters;. This happens in the context of early state hooks up to and including TS_HTTP_POST_REMAP_HOOK. In case of cacheurl.so rewrite on the URL, hostname reamains empty even after post_remap. Here're the steps to reproduce the problem - a global lua plugin (plugins.config): ==[cut]== function do_global_txn_start() print('==[cut]==') print ('do_global_txt_start: ' .. ts.client_request.get_url()) end function do_global_txn_close() print ('do_global_txn_close: ' .. ts.client_request.get_url()) print('==[cut]==') end function do_global_os_dns() print ('do_global_os_dns: ' .. ts.client_request.get_url()) end function do_global_pre_remap() print ('do_global_pre_remap: ' .. ts.client_request.get_url()) end function do_global_post_remap() print ('do_global_post_remap: ' .. ts.client_request.get_url()) end function do_global_read_request() print ('do_global_read_request: ' .. ts.client_request.get_url()) end function do_global_send_request() print ('do_global_send_request: ' .. ts.client_request.get_url()) end function do_global_read_response() print ('do_global_read_response: ' .. ts.client_request.get_url()) end function do_global_send_response() print ('do_global_send_response: ' .. ts.client_request.get_url()) end function do_global_cache_lookup_complete() print ('do_global_cache_lookup_complete: ' .. ts.client_request.get_url()) end function do_global_read_cache() print ('do_global_read_cache: ' .. ts.client_request.get_url()) end Requesting same URL - http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png - in 4 different scenarios: 1. empty cache (MISS) without cacheurl.so activated 2. HIT request without cacheurl.so activated 3. empty cache (MISS) with cacheurl.so activated 4. HIT request with cacheurl.so activated cacheurl.config consists the following: ^http://[^\/]*(yimg\.com)/(.*)http://$1.internal/$2 Here's my traffic.out output: 1. MISS without cacheurl.so ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_os_dns: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_request: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_read_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 2. HIT without cacheurl.so: ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_post_remap: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_read_cache: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_cache_lookup_complete: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_send_response: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png do_global_txn_close: http://l.yimg.com/os/mit/media/m/base/images/transparent-1093278.png ==[cut]== 3. MISS with cacheurl.so: ==[cut]== do_global_txt_start: / do_global_read_request: http:///os/mit/media/m/base/images/transparent-1093278.png do_global_pre_remap:
[jira] [Commented] (TS-2924) Configurable client's ssl protocols and cipher suite
[ https://issues.apache.org/jira/browse/TS-2924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14060277#comment-14060277 ] Wei Sun commented on TS-2924: - Discussed with [~bcall] and [~sudheerv], we're going to take this approach in the short-term to address customer's issue asap. Configurable client's ssl protocols and cipher suite Key: TS-2924 URL: https://issues.apache.org/jira/browse/TS-2924 Project: Traffic Server Issue Type: Improvement Components: SSL Reporter: Wei Sun Labels: yahoo Attachments: TS-2924.diff A few old origins cannot support the latest ssl protocols well, ats is expected to be able to configure dedicated cipher suite and protocols for SSL client context. {code} e.g. Enable SSLv3/TLSv1/TLSv1_1/TLSv1_2 map http://foo1.com https://www.bankadviser.com/scbteod/scbteod_logo.GIF map http://foo2.com https://applications.bancopopular.com/images/emails/fb-share-button.jpg curl -H 'Host: foo1.com' http://localhost:8080/ -v // failed to setup ssl connection to origin curl -H 'Host: foo2.com' http://localhost:8080/ -v //SSL connection hang {code} -- This message was sent by Atlassian JIRA (v6.2#6252)