[ 
https://issues.apache.org/jira/browse/TS-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848297#action_12848297
 ] 

Manjesh Nilange commented on TS-253:
------------------------------------

John, I'm generally new to TS code and specifically new to the cache code. I'm 
having difficulty isolating this issue. Can you give me some details?

I browsed through the cache code and enabled 'cache_scan' debug tag. But that 
didn't print out any messages - leading me to believe that the code in 
CachePart.cc is perhaps not being used at all. So I tried gdb'ing 
traffic_server and breaking on Cache::lookup(). However even when TS was 
serving from cache (fs cache configured in storage.config), that function was 
never called either - neither at startup nor when processing the request. Can 
you tell me how you dumped the above variable? Thanks!

> HTTP Header Host ptr field not set
> ----------------------------------
>
>                 Key: TS-253
>                 URL: https://issues.apache.org/jira/browse/TS-253
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: John Plevyak
>
> I noticed while lookup at cache scan that the host field of URLImpl is not 
> set correctly.
> the m_ptr_host field is 0x0 while the m_len_host is correct (14).
> here is what it looks like:
> $20 = {<HdrHeapObjImpl> = {m_type = 2, m_length = 120, m_obj_flags = 0}, 
> m_len_scheme = 4, 
>   m_len_user = 0, m_len_password = 0, m_len_host = 14, m_len_port = 0, 
> m_len_path = 0, 
>   m_len_params = 27, m_len_query = 0, m_len_fragment = 0, 
> m_len_printed_string = 0, 
>   m_ptr_scheme = 0x0, 
>   m_ptr_user = 0x7ffff2fe9d2f 
> "http://www.google.com/intl/en_ALL/images/logo.gif HTTP/1.1\r\nHost: 
> www.google.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; 
> rv:1.9.2) Gecko/20100115 Firefox/3.6\r\nAccept: image/png,im"..., 
> m_ptr_password = 0x0, 
>   m_ptr_host = 0x0, 
>   m_ptr_port = 0x7ffff2fe9d36 "www.google.com/intl/en_ALL/images/logo.gif 
> HTTP/1.1\r\nHost: www.google.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; 
> Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6\r\nAccept: 
> image/png,image/*;q"..., m_ptr_path = 0x0, 
>   m_ptr_params = 0x7ffff2fe9d45 "intl/en_ALL/images/logo.gif 
> HTTP/1.1\r\nHost: www.google.com\r\nUser-Agent: Mozilla/5.0 (Windows; U; 
> Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6\r\nAccept: 
> image/png,image/*;q=0.8,*/*;q=0.5\r"..., m_ptr_query = 0x0, 
>   m_ptr_fragment = 0x0, m_ptr_printed_string = 0x0, clean = false, 
> m_scheme_wks_idx = 0, 
>   m_port = 0, m_url_type = 0 '\000', m_type_code = 0 '\000', m_capacity_host 
> = 1}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to