[jira] [Created] (TS-2783) Automated verification of defaults (config vs. code)

2014-05-06 Thread JIRA
Piotr Buliński created TS-2783:
--

 Summary: Automated verification of defaults (config vs. code)
 Key: TS-2783
 URL: https://issues.apache.org/jira/browse/TS-2783
 Project: Traffic Server
  Issue Type: Improvement
  Components: Configuration, Documentation
Reporter: Piotr Buliński


There are cases where documentation states different defaults than they are 
actually used in code. I will work on some automated mechanism verifying that, 
so we can keep easily code and docs in sync with each release.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (TS-2783) Automated verification of defaults (config vs. code)

2014-05-06 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/TS-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Piotr Buliński updated TS-2783:
---

Description: 
There are cases where documentation states different defaults than they are 
actually used in code. I will work on some automated mechanism verifying that, 
so we can keep easily code and docs in sync with each release.

Additionally it should show:
 - missing configuration parameters in docs,
 - unused configuration parameters in code.

  was:There are cases where documentation states different defaults than they 
are actually used in code. I will work on some automated mechanism verifying 
that, so we can keep easily code and docs in sync with each release.


> Automated verification of defaults (config vs. code)
> 
>
> Key: TS-2783
> URL: https://issues.apache.org/jira/browse/TS-2783
> Project: Traffic Server
>  Issue Type: Improvement
>  Components: Configuration, Documentation
>Reporter: Piotr Buliński
>
> There are cases where documentation states different defaults than they are 
> actually used in code. I will work on some automated mechanism verifying 
> that, so we can keep easily code and docs in sync with each release.
> Additionally it should show:
>  - missing configuration parameters in docs,
>  - unused configuration parameters in code.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2783) Automated verification of defaults (config vs. code)

2014-05-06 Thread James Peach (JIRA)

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

James Peach commented on TS-2783:
-

Does the {{compare_RecordsConfigcc.py}} script do most of what you want?

{code}
oarfish:trafficserver.git jpeach$ python 
contrib/python/compare_RecordsConfigcc.py .
# Comparing RecordsConfig.cc -> records.config.default.in
...

Undocumented configuration variables:
...

Incorrectly documented defaults:
...

Stale documentation:
...
{code}

> Automated verification of defaults (config vs. code)
> 
>
> Key: TS-2783
> URL: https://issues.apache.org/jira/browse/TS-2783
> Project: Traffic Server
>  Issue Type: Improvement
>  Components: Configuration, Documentation
>Reporter: Piotr Buliński
>
> There are cases where documentation states different defaults than they are 
> actually used in code. I will work on some automated mechanism verifying 
> that, so we can keep easily code and docs in sync with each release.
> Additionally it should show:
>  - missing configuration parameters in docs,
>  - unused configuration parameters in code.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (TS-2782) ats crash in master in HdrHeap::inherit_string_heaps

2014-05-06 Thread Sudheer Vinukonda (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-2782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sudheer Vinukonda updated TS-2782:
--

Description: 
When testing master on production hosts, noticed the below crash occuring 
repeatedly every time ats version is changed. This crash stops happening after 
clearing the cache. This needs further investigation, but, I remember a 
discussion between briang and zwoop about duplicate string fields in HdrHeap. 
Not sure if this core is related to that. Would appreciate if briang or zwoop 
can comment. Thank you.


{code}

[example_prep.sh] Checking/Moving old cores...
[TrafficServer] using root directory '/home/y'
NOTE: Traffic Server received Sig 11: Segmentation fault
/home/y/bin/traffic_server - STACK TRACE:
/lib64/libpthread.so.0(+0x30d3c0f500)[0x2aae27e2d500]
/home/y/bin/traffic_server(_ZN7HdrHeap20inherit_string_heapsEPKS_+0x271)[0x61caa1]
/home/y/bin/traffic_server(_Z14http_hdr_cloneP11HTTPHdrImplP7HdrHeapS2_+0x93)[0x619f83]
/home/y/bin/traffic_server(_ZN19HttpTransactHeaders18copy_header_fieldsEP7HTTPHdrS1_bl+0x1be)[0x5c201e]
/home/y/bin/traffic_server(_ZN12HttpTransact14build_responseEPNS_5StateEP7HTTPHdrS3_11HTTPVersion10HTTPStatusPKc+0x3ed)[0x5a287d]
/home/y/bin/traffic_server(_ZN12HttpTransact25build_response_from_cacheEPNS_5StateE15HTTPWarningCode+0x354)[0x5b67f4]
/home/y/bin/traffic_server(_ZN12HttpTransact22HandleCacheOpenReadHitEPNS_5StateE+0x448)[0x5b84c8]
/home/y/bin/traffic_server(_ZN6HttpSM32call_transact_and_set_next_stateEPFvPN12HttpTransact5StateEE+0x66)[0x573816]
/home/y/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x2d2)[0x58ba72]
/home/y/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x2b0)[0x583070]
/home/y/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x1ea)[0x58d06a]
/home/y/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x2d2)[0x58ba72]
/home/y/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x2b0)[0x583070]
/home/y/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x1ea)[0x58d06a]
/home/y/bin/traffic_server(_ZN6HttpSM21state_cache_open_readEiPv+0xfe)[0x58533e]
/home/y/bin/traffic_server(_ZN6HttpSM12main_handlerEiPv+0xd8)[0x587de8]
/home/y/bin/traffic_server(_ZN11HttpCacheSM21state_cache_open_readEiPv+0x1b2)[0x566e12]
/home/y/bin/traffic_server(_ZN7CacheVC8callcontEi+0x53)[0x653453]
/home/y/bin/traffic_server(_ZN7CacheVC17openReadStartHeadEiP5Event+0x7cf)[0x6be9af]
/home/y/bin/traffic_server(_ZN7CacheVC14handleReadDoneEiP5Event+0x1ed)[0x69d40d]
/home/y/bin/traffic_server(_ZN19AIOCallbackInternal11io_completeEiPv+0x35)[0x6539c5]
/home/y/bin/traffic_server(_ZN7EThread13process_eventEP5Eventi+0x8f)[0x714aef]
/home/y/bin/traffic_server(_ZN7EThread7executeEv+0x61b)[0x71561b]
/home/y/bin/traffic_server[0x713e9a]
/lib64/libpthread.so.0(+0x30d3c07851)[0x2aae27e25851]
/lib64/libc.so.6(clone+0x6d)[0x30d38e890d]

{code}

gdb output below:

{code}

(gdb) bt
#0  ink_atomic_increment (this=0x2afb60113010, 
inherit_from=0x2afaa824e688) at ../../lib/ts/ink_atomic.h:162
#1  refcount_inc (this=0x2afb60113010, inherit_from=0x2afaa824e688) at 
../../lib/ts/Ptr.h:279
#2  operator= (this=0x2afb60113010, inherit_from=0x2afaa824e688) at 
../../lib/ts/Ptr.h:408
#3  attach_str_heap (this=0x2afb60113010, inherit_from=0x2afaa824e688) at 
HdrHeap.cc:1000
#4  HdrHeap::inherit_string_heaps (this=0x2afb60113010, 
inherit_from=0x2afaa824e688) at HdrHeap.cc:1081
#5  0x00619f83 in http_hdr_clone (s_hh=0x2afaa824e710, 
s_heap=0x2afaa824e688, d_heap=0x2afb60113010) at HTTP.cc:375
#6  0x005c201e in copy (src_hdr=0x2afaa824e0b8, new_hdr=0x2afac4058c50, 
retain_proxy_auth_hdrs=false, date=0) at ../../proxy/hdrs/HTTP.h:867
#7  HttpTransactHeaders::copy_header_fields (src_hdr=0x2afaa824e0b8, 
new_hdr=0x2afac4058c50, retain_proxy_auth_hdrs=false, date=0) at 
HttpTransactHeaders.cc:201
#8  0x005a287d in HttpTransact::build_response (s=0x2afac4058570, 
base_response=0x2afaa824e0b8, outgoing_response=0x2afac4058c50, 
outgoing_version=, 
status_code=HTTP_STATUS_NONE, reason_phrase=0x7323ac "None") at 
HttpTransact.cc:7926
#9  0x005b67f4 in HttpTransact::build_response_from_cache 
(s=0x2afac4058570, warning_code=HTTP_WARNING_CODE_NONE) at HttpTransact.cc:2925
#10 0x005b84c8 in HttpTransact::HandleCacheOpenReadHit 
(s=0x2afac4058570) at HttpTransact.cc:2811
#11 0x00573816 in HttpSM::call_transact_and_set_next_state 
(this=0x2afac4058500, f=) at HttpSM.cc:6748
#12 0x0058ba72 in HttpSM::handle_api_return (this=0x2afac4058500) at 
HttpSM.cc:1501
#13 0x00583070 in HttpSM::state_api_callout (this=0x2afac4058500, 
event=6, data=0x0) at HttpSM.cc:1433
#14 0x00587fdb in HttpSM::state_api_callback (this=0x2afac4058500, 
event=6, data=0x0) at HttpSM.cc:1251
#15 0x004c0acc in TSHttpTxnReenable (txnp=0x2afac4058500, 
event=TS_EVENT_HTTP_CONTINUE) at InkAPI.cc:5548
#16 0x2afa68cb19b7 in yca_cache_access_control (contp=

[jira] [Created] (TS-2784) header_rewrite fails to build on FreeBSD(10)

2014-05-06 Thread Leif Hedstrom (JIRA)
Leif Hedstrom created TS-2784:
-

 Summary: header_rewrite fails to build on FreeBSD(10)
 Key: TS-2784
 URL: https://issues.apache.org/jira/browse/TS-2784
 Project: Traffic Server
  Issue Type: Bug
  Components: Build
Reporter: Leif Hedstrom


{code}
  CXX  expander.lo
expander.cc:41:28: error: member access into incomplete type 'const struct 
sockaddr_in'
inet_ntop(s_sockaddr_in->sin_family, &s_sockaddr_in->sin_addr, res, 
INET_ADDRSTRLEN);
   ^
expander.cc:30:16: note: forward declaration of 'sockaddr_in'
  const struct sockaddr_in *s_sockaddr_in;
   ^
expander.cc:45:29: error: member access into incomplete type 'const struct 
sockaddr_in6'
inet_ntop(s_sockaddr_in6->sin6_family, &s_sockaddr_in6->sin6_addr, res, 
INET6_ADDRSTRLEN);
^
expander.cc:31:16: note: forward declaration of 'sockaddr_in6'
  const struct sockaddr_in6 *s_sockaddr_in6;
   ^
{code}




--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (TS-2784) header_rewrite fails to build on FreeBSD(10)

2014-05-06 Thread Leif Hedstrom (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leif Hedstrom updated TS-2784:
--

Fix Version/s: 5.0.0

> header_rewrite fails to build on FreeBSD(10)
> 
>
> Key: TS-2784
> URL: https://issues.apache.org/jira/browse/TS-2784
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: Leif Hedstrom
> Fix For: 5.0.0
>
>
> {code}
>   CXX  expander.lo
> expander.cc:41:28: error: member access into incomplete type 'const struct 
> sockaddr_in'
> inet_ntop(s_sockaddr_in->sin_family, &s_sockaddr_in->sin_addr, res, 
> INET_ADDRSTRLEN);
>^
> expander.cc:30:16: note: forward declaration of 'sockaddr_in'
>   const struct sockaddr_in *s_sockaddr_in;
>^
> expander.cc:45:29: error: member access into incomplete type 'const struct 
> sockaddr_in6'
> inet_ntop(s_sockaddr_in6->sin6_family, &s_sockaddr_in6->sin6_addr, res, 
> INET6_ADDRSTRLEN);
> ^
> expander.cc:31:16: note: forward declaration of 'sockaddr_in6'
>   const struct sockaddr_in6 *s_sockaddr_in6;
>^
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Assigned] (TS-2784) header_rewrite fails to build on FreeBSD(10)

2014-05-06 Thread Leif Hedstrom (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leif Hedstrom reassigned TS-2784:
-

Assignee: Leif Hedstrom

> header_rewrite fails to build on FreeBSD(10)
> 
>
> Key: TS-2784
> URL: https://issues.apache.org/jira/browse/TS-2784
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: Leif Hedstrom
>Assignee: Leif Hedstrom
> Fix For: 5.0.0
>
>
> {code}
>   CXX  expander.lo
> expander.cc:41:28: error: member access into incomplete type 'const struct 
> sockaddr_in'
> inet_ntop(s_sockaddr_in->sin_family, &s_sockaddr_in->sin_addr, res, 
> INET_ADDRSTRLEN);
>^
> expander.cc:30:16: note: forward declaration of 'sockaddr_in'
>   const struct sockaddr_in *s_sockaddr_in;
>^
> expander.cc:45:29: error: member access into incomplete type 'const struct 
> sockaddr_in6'
> inet_ntop(s_sockaddr_in6->sin6_family, &s_sockaddr_in6->sin6_addr, res, 
> INET6_ADDRSTRLEN);
> ^
> expander.cc:31:16: note: forward declaration of 'sockaddr_in6'
>   const struct sockaddr_in6 *s_sockaddr_in6;
>^
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2783) Automated verification of defaults (config vs. code)

2014-05-06 Thread JIRA

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

Piotr Buliński commented on TS-2783:


Ah, cool.

It's not 100% bulletproof, but definitely a good start.

Doesn't show that `proxy.config.http.keep_alive_enabled_in` is not OK, but it 
should:

{code}
g proxy.config.http.keep_alive_enabled_in .  
./doc/reference/api/TSHttpOverridableConfig.en.rst:
proxy.config.http.keep_alive_enabled_in
./doc/reference/configuration/records.config.en.rst:.. ts:cv:: CONFIG 
proxy.config.http.keep_alive_enabled_in  INT 0
./lib/perl/lib/Apache/TS/AdminClient.pm: proxy.config.http.keep_alive_enabled_in
./mgmt/RecordsConfig.cc:  {RECT_CONFIG, 
"proxy.config.http.keep_alive_enabled_in", RECD_INT, "1", RECU_DYNAMIC, 
RR_NULL, RECC_NULL, NULL, RECA_NULL}
./proxy/config/records.config.default.in:CONFIG 
proxy.config.http.keep_alive_enabled_in INT 1
./proxy/http/HttpConfig.cc:  
HttpEstablishStaticConfigByte(c.oride.keep_alive_enabled_in, 
"proxy.config.http.keep_alive_enabled_in");
./proxy/InkAPI.cc:  if (!strncmp(name, 
"proxy.config.http.keep_alive_enabled_in", length))
./proxy/InkAPITest.cc:  "proxy.config.http.keep_alive_enabled_in",
{code}

I'll work on improving it (I'm actually a python developer) and post patch here 
whenever ready.

> Automated verification of defaults (config vs. code)
> 
>
> Key: TS-2783
> URL: https://issues.apache.org/jira/browse/TS-2783
> Project: Traffic Server
>  Issue Type: Improvement
>  Components: Configuration, Documentation
>Reporter: Piotr Buliński
>
> There are cases where documentation states different defaults than they are 
> actually used in code. I will work on some automated mechanism verifying 
> that, so we can keep easily code and docs in sync with each release.
> Additionally it should show:
>  - missing configuration parameters in docs,
>  - unused configuration parameters in code.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2711) Include Lua JIT as a submodule

2014-05-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-2711:
-

Commit 7d2833e74fe1d3a8ebea1f05c099d10db1ed49dc in trafficserver's branch 
refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=7d2833e ]

TS-2711 Make luajit build with correct compiler (breaks on e.g. FreeBSD10)


> Include Lua JIT as a submodule 
> ---
>
> Key: TS-2711
> URL: https://issues.apache.org/jira/browse/TS-2711
> Project: Traffic Server
>  Issue Type: Improvement
>  Components: Build
>Reporter: Leif Hedstrom
>Assignee: Leif Hedstrom
> Fix For: 5.0.0
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (TS-2785) Warnings from configure and sphinx / python

2014-05-06 Thread Leif Hedstrom (JIRA)
Leif Hedstrom created TS-2785:
-

 Summary: Warnings from configure and sphinx / python
 Key: TS-2785
 URL: https://issues.apache.org/jira/browse/TS-2785
 Project: Traffic Server
  Issue Type: Bug
  Components: Documentation
Reporter: Leif Hedstrom


On RHEL5, we get this error when running configure:

{code}
checking for python script directory... ${prefix}/lib/python2.4/site-packages
  File "./doc/conf.py", line 401
except Exception as e:
  ^
SyntaxError: invalid syntax
  File "./doc/conf.py", line 401
except Exception as e:
  ^
SyntaxError: invalid syntax
  File "./doc/conf.py", line 401
except Exception as e:
  ^
SyntaxError: invalid syntax
  File "./doc/conf.py", line 401
except Exception as e:
  ^
SyntaxError: invalid syntax
  File "./doc/conf.py", line 401
except Exception as e:
  ^
SyntaxError: invalid syntax
checking for sphinx-build... false
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (TS-2785) Warnings from configure and sphinx / python

2014-05-06 Thread Leif Hedstrom (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leif Hedstrom updated TS-2785:
--

Assignee: Phil Sorber

> Warnings from configure and sphinx / python
> ---
>
> Key: TS-2785
> URL: https://issues.apache.org/jira/browse/TS-2785
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Documentation
>Reporter: Leif Hedstrom
>Assignee: Phil Sorber
> Fix For: 5.0.0
>
>
> On RHEL5, we get this error when running configure:
> {code}
> checking for python script directory... ${prefix}/lib/python2.4/site-packages
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
> checking for sphinx-build... false
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (TS-2785) Warnings from configure and sphinx / python

2014-05-06 Thread Leif Hedstrom (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leif Hedstrom updated TS-2785:
--

Fix Version/s: 5.0.0

> Warnings from configure and sphinx / python
> ---
>
> Key: TS-2785
> URL: https://issues.apache.org/jira/browse/TS-2785
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Documentation
>Reporter: Leif Hedstrom
>Assignee: Phil Sorber
> Fix For: 5.0.0
>
>
> On RHEL5, we get this error when running configure:
> {code}
> checking for python script directory... ${prefix}/lib/python2.4/site-packages
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
> checking for sphinx-build... false
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (TS-2785) Warnings from configure and sphinx / python

2014-05-06 Thread Leif Hedstrom (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leif Hedstrom updated TS-2785:
--

Component/s: Configuration

> Warnings from configure and sphinx / python
> ---
>
> Key: TS-2785
> URL: https://issues.apache.org/jira/browse/TS-2785
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Configuration, Documentation
>Reporter: Leif Hedstrom
>Assignee: Phil Sorber
> Fix For: 5.0.0
>
>
> On RHEL5, we get this error when running configure:
> {code}
> checking for python script directory... ${prefix}/lib/python2.4/site-packages
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
>   File "./doc/conf.py", line 401
> except Exception as e:
>   ^
> SyntaxError: invalid syntax
> checking for sphinx-build... false
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Assigned] (TS-1375) We do not deal with running low on FDs gracefully

2014-05-06 Thread Bryan Call (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Call reassigned TS-1375:
--

Assignee: Bryan Call  (was: Bin Chen)

> We do not deal with running low on FDs gracefully
> -
>
> Key: TS-1375
> URL: https://issues.apache.org/jira/browse/TS-1375
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Network
> Environment: centos 6.2 x86_64  ats from git(3.3.0)
>Reporter: bettydramit
>Assignee: Bryan Call
> Fix For: 5.2.0
>
> Attachments: bcall_inactivity_cop.diff
>
>
> [Jul 20 09:09:19.787] Server {0x2ad5ddd00060} WARNING: too many open file 
> descriptors, emergency throttling
> [Jul 20 09:09:19.788] Server {0x2ad5ded28700} WARNING: too many connections, 
> throttling
> [Jul 20 09:19:19.823] Server {0x2ad5eb6d2700} WARNING: too many connections, 
> throttling
> [Jul 20 09:19:22.634] Manager {0x7f10bc4327e0} NOTE: [Alarms::signalAlarm] 
> Skipping Alarm: 'too many connections, throttling'
> [TrafficManager] ==> Cleaning up and reissuing signal #15
> [Jul 20 09:21:50.819] Manager {0x7f10bc4327e0} ERROR: [TrafficManager] ==> 
> Cleaning up and reissuing signal #15
> [Jul 20 09:21:50.819] Manager {0x7f10bc4327e0} ERROR:  (last system error 2: 
> No such file or directory)
> NOTE: Traffic Server received Sig 15: Terminated
> [TrafficManager] ==> signal #15



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-1375) We do not deal with running low on FDs gracefully

2014-05-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-1375:
-

Commit 6397b16105cd0a48db609e924f3a567bd8f08ac0 in trafficserver's branch 
refs/heads/master from [~bcall]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=6397b16 ]

TS-1375: Setting default inactivity timeout, if one is not set, to 1 day


> We do not deal with running low on FDs gracefully
> -
>
> Key: TS-1375
> URL: https://issues.apache.org/jira/browse/TS-1375
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Network
> Environment: centos 6.2 x86_64  ats from git(3.3.0)
>Reporter: bettydramit
>Assignee: Bin Chen
> Fix For: 5.2.0
>
> Attachments: bcall_inactivity_cop.diff
>
>
> [Jul 20 09:09:19.787] Server {0x2ad5ddd00060} WARNING: too many open file 
> descriptors, emergency throttling
> [Jul 20 09:09:19.788] Server {0x2ad5ded28700} WARNING: too many connections, 
> throttling
> [Jul 20 09:19:19.823] Server {0x2ad5eb6d2700} WARNING: too many connections, 
> throttling
> [Jul 20 09:19:22.634] Manager {0x7f10bc4327e0} NOTE: [Alarms::signalAlarm] 
> Skipping Alarm: 'too many connections, throttling'
> [TrafficManager] ==> Cleaning up and reissuing signal #15
> [Jul 20 09:21:50.819] Manager {0x7f10bc4327e0} ERROR: [TrafficManager] ==> 
> Cleaning up and reissuing signal #15
> [Jul 20 09:21:50.819] Manager {0x7f10bc4327e0} ERROR:  (last system error 2: 
> No such file or directory)
> NOTE: Traffic Server received Sig 15: Terminated
> [TrafficManager] ==> signal #15



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2784) header_rewrite fails to build on FreeBSD(10)

2014-05-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-2784:
-

Commit 3b6748ed2117cd824049498508fa3b1609f5638a in trafficserver's branch 
refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=3b6748e ]

TS-2784 Fix build for FreeBSD10


> header_rewrite fails to build on FreeBSD(10)
> 
>
> Key: TS-2784
> URL: https://issues.apache.org/jira/browse/TS-2784
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: Leif Hedstrom
>Assignee: Leif Hedstrom
> Fix For: 5.0.0
>
>
> {code}
>   CXX  expander.lo
> expander.cc:41:28: error: member access into incomplete type 'const struct 
> sockaddr_in'
> inet_ntop(s_sockaddr_in->sin_family, &s_sockaddr_in->sin_addr, res, 
> INET_ADDRSTRLEN);
>^
> expander.cc:30:16: note: forward declaration of 'sockaddr_in'
>   const struct sockaddr_in *s_sockaddr_in;
>^
> expander.cc:45:29: error: member access into incomplete type 'const struct 
> sockaddr_in6'
> inet_ntop(s_sockaddr_in6->sin6_family, &s_sockaddr_in6->sin6_addr, res, 
> INET6_ADDRSTRLEN);
> ^
> expander.cc:31:16: note: forward declaration of 'sockaddr_in6'
>   const struct sockaddr_in6 *s_sockaddr_in6;
>^
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (TS-1375) We do not deal with running low on FDs gracefully

2014-05-06 Thread Bryan Call (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Call updated TS-1375:
---

Fix Version/s: (was: 5.2.0)
   5.0.0

> We do not deal with running low on FDs gracefully
> -
>
> Key: TS-1375
> URL: https://issues.apache.org/jira/browse/TS-1375
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Network
> Environment: centos 6.2 x86_64  ats from git(3.3.0)
>Reporter: bettydramit
>Assignee: Bryan Call
> Fix For: 5.0.0
>
> Attachments: bcall_inactivity_cop.diff
>
>
> [Jul 20 09:09:19.787] Server {0x2ad5ddd00060} WARNING: too many open file 
> descriptors, emergency throttling
> [Jul 20 09:09:19.788] Server {0x2ad5ded28700} WARNING: too many connections, 
> throttling
> [Jul 20 09:19:19.823] Server {0x2ad5eb6d2700} WARNING: too many connections, 
> throttling
> [Jul 20 09:19:22.634] Manager {0x7f10bc4327e0} NOTE: [Alarms::signalAlarm] 
> Skipping Alarm: 'too many connections, throttling'
> [TrafficManager] ==> Cleaning up and reissuing signal #15
> [Jul 20 09:21:50.819] Manager {0x7f10bc4327e0} ERROR: [TrafficManager] ==> 
> Cleaning up and reissuing signal #15
> [Jul 20 09:21:50.819] Manager {0x7f10bc4327e0} ERROR:  (last system error 2: 
> No such file or directory)
> NOTE: Traffic Server received Sig 15: Terminated
> [TrafficManager] ==> signal #15



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Resolved] (TS-2784) header_rewrite fails to build on FreeBSD(10)

2014-05-06 Thread Leif Hedstrom (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leif Hedstrom resolved TS-2784.
---

Resolution: Fixed

> header_rewrite fails to build on FreeBSD(10)
> 
>
> Key: TS-2784
> URL: https://issues.apache.org/jira/browse/TS-2784
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: Leif Hedstrom
>Assignee: Leif Hedstrom
> Fix For: 5.0.0
>
>
> {code}
>   CXX  expander.lo
> expander.cc:41:28: error: member access into incomplete type 'const struct 
> sockaddr_in'
> inet_ntop(s_sockaddr_in->sin_family, &s_sockaddr_in->sin_addr, res, 
> INET_ADDRSTRLEN);
>^
> expander.cc:30:16: note: forward declaration of 'sockaddr_in'
>   const struct sockaddr_in *s_sockaddr_in;
>^
> expander.cc:45:29: error: member access into incomplete type 'const struct 
> sockaddr_in6'
> inet_ntop(s_sockaddr_in6->sin6_family, &s_sockaddr_in6->sin6_addr, res, 
> INET6_ADDRSTRLEN);
> ^
> expander.cc:31:16: note: forward declaration of 'sockaddr_in6'
>   const struct sockaddr_in6 *s_sockaddr_in6;
>^
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (TS-2786) Lua plugin does not build on FreeBSD10

2014-05-06 Thread Leif Hedstrom (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-2786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leif Hedstrom updated TS-2786:
--

Fix Version/s: 5.0.0

> Lua plugin does not build on FreeBSD10
> --
>
> Key: TS-2786
> URL: https://issues.apache.org/jira/browse/TS-2786
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build, Lua, Plugins
>Reporter: Leif Hedstrom
> Fix For: 5.0.0
>
>
> {code}
> libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../../lib/ts 
> -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -I../../../proxy/api 
> -I../../../proxy/api -I../../../lib/ts -I../../../lib/ts 
> -I../../../lib/luajit/src -I/usr/local/include -Dfreebsd 
> -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT 
> -I/usr/local/include/tcl8.6 -g -pipe -Wall -Qunused-arguments -O3 
> -feliminate-unused-debug-symbols -fno-strict-aliasing -Werror -MT 
> tslua_la-ts_lua_client_response.lo -MD -MP -MF 
> .deps/tslua_la-ts_lua_client_response.Tpo -c ts_lua_client_response.c  -fPIC 
> -DPIC -o .libs/tslua_la-ts_lua_client_response.o
> ts_lua_client_request.c:387:80: error: incomplete definition of type 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>   
> ~^
> ts_lua_client_request.c:387:56: note: forward declaration of 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>^
> ts_lua_client_request.c:389:82: error: incomplete definition of type 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
>
> ~~^
> ts_lua_client_request.c:389:57: note: forward declaration of 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
> ^
> ts_lua_client_request.c:415:53: error: incomplete definition of type 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
>~^
> ts_lua_client_request.c:415:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:417:54: error: incomplete definition of type 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>~~^
> ts_lua_client_request.c:417:29: note: forward declaration of 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
> ^
> ts_lua_client_request.c:447:53: error: incomplete definition of type 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
>~^
> ts_lua_client_request.c:447:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:448:80: error: incomplete definition of type 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>   
> ~^
> ts_lua_client_request.c:447:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:451:54: error: incomplete definition of type 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>~~^
> ts_lua_client_request.c:451:29: note: forward declaration of 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
> ^
> ts_lua_client_request.c:452:82: error: incomplete definition of type 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
>
> ~~^
> ts_lua_client_request.c:451:29: note: forward declaration of 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
> ^
> 8 errors generated.
> gmake[3]: *** [

[jira] [Created] (TS-2786) Lua plugin does not build on FreeBSD10

2014-05-06 Thread Leif Hedstrom (JIRA)
Leif Hedstrom created TS-2786:
-

 Summary: Lua plugin does not build on FreeBSD10
 Key: TS-2786
 URL: https://issues.apache.org/jira/browse/TS-2786
 Project: Traffic Server
  Issue Type: Bug
  Components: Build, Lua, Plugins
Reporter: Leif Hedstrom


{code}
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../../lib/ts 
-D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -I../../../proxy/api 
-I../../../proxy/api -I../../../lib/ts -I../../../lib/ts 
-I../../../lib/luajit/src -I/usr/local/include -Dfreebsd 
-D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT 
-I/usr/local/include/tcl8.6 -g -pipe -Wall -Qunused-arguments -O3 
-feliminate-unused-debug-symbols -fno-strict-aliasing -Werror -MT 
tslua_la-ts_lua_client_response.lo -MD -MP -MF 
.deps/tslua_la-ts_lua_client_response.Tpo -c ts_lua_client_response.c  -fPIC 
-DPIC -o .libs/tslua_la-ts_lua_client_response.o
ts_lua_client_request.c:387:80: error: incomplete definition of type 'struct 
sockaddr_in'
inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
*)client_ip)->sin_addr, cip, sizeof(cip));
  ~^
ts_lua_client_request.c:387:56: note: forward declaration of 'struct 
sockaddr_in'
inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
*)client_ip)->sin_addr, cip, sizeof(cip));
   ^
ts_lua_client_request.c:389:82: error: incomplete definition of type 'struct 
sockaddr_in6'
inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
*)client_ip)->sin6_addr, cip, sizeof(cip));
   
~~^
ts_lua_client_request.c:389:57: note: forward declaration of 'struct 
sockaddr_in6'
inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
*)client_ip)->sin6_addr, cip, sizeof(cip));
^
ts_lua_client_request.c:415:53: error: incomplete definition of type 'struct 
sockaddr_in'
port = ((struct sockaddr_in *)client_ip)->sin_port;
   ~^
ts_lua_client_request.c:415:29: note: forward declaration of 'struct 
sockaddr_in'
port = ((struct sockaddr_in *)client_ip)->sin_port;
^
ts_lua_client_request.c:417:54: error: incomplete definition of type 'struct 
sockaddr_in6'
port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
   ~~^
ts_lua_client_request.c:417:29: note: forward declaration of 'struct 
sockaddr_in6'
port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
^
ts_lua_client_request.c:447:53: error: incomplete definition of type 'struct 
sockaddr_in'
port = ((struct sockaddr_in *)client_ip)->sin_port;
   ~^
ts_lua_client_request.c:447:29: note: forward declaration of 'struct 
sockaddr_in'
port = ((struct sockaddr_in *)client_ip)->sin_port;
^
ts_lua_client_request.c:448:80: error: incomplete definition of type 'struct 
sockaddr_in'
inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
*)client_ip)->sin_addr, cip, sizeof(cip));
  ~^
ts_lua_client_request.c:447:29: note: forward declaration of 'struct 
sockaddr_in'
port = ((struct sockaddr_in *)client_ip)->sin_port;
^
ts_lua_client_request.c:451:54: error: incomplete definition of type 'struct 
sockaddr_in6'
port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
   ~~^
ts_lua_client_request.c:451:29: note: forward declaration of 'struct 
sockaddr_in6'
port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
^
ts_lua_client_request.c:452:82: error: incomplete definition of type 'struct 
sockaddr_in6'
inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
*)client_ip)->sin6_addr, cip, sizeof(cip));
   
~~^
ts_lua_client_request.c:451:29: note: forward declaration of 'struct 
sockaddr_in6'
port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
^
8 errors generated.
gmake[3]: *** [tslua_la-ts_lua_client_request.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs
mv -f .deps/tslua_la-ts_lua.Tpo .deps/tslua_la-ts_lua.Plo

{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-1590) use_remap_processor crashes if share_server_sessions = 2

2014-05-06 Thread Bryan Call (JIRA)

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

Bryan Call commented on TS-1590:


My opinion is that we shouldn't let the server start if shared session is set 
to 2 and using remap processor.  There should be an error message explaining 
why the server wasn't able to start.

> use_remap_processor crashes if share_server_sessions = 2
> 
>
> Key: TS-1590
> URL: https://issues.apache.org/jira/browse/TS-1590
> Project: Traffic Server
>  Issue Type: Bug
>  Components: HTTP
>Affects Versions: 3.3.0
>Reporter: Conan Wang
>Priority: Critical
>  Labels: Crash
> Fix For: 5.0.0
>
>
> easy to reproduce:
> {code}
> CONFIG proxy.config.remap.use_remap_processor INT 1   (default is 0)
> CONFIG proxy.config.http.share_server_sessions INT 2  (0, 1 will be ok)
> {code}
> {code}
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x1210
> [Switching to process 8927 thread 0x1a03]
> 0x0001000ead15 in _acquire_session (bucket=0x11c0, ip=0x6713138, 
> hostname_hash=@0xb06915d0, sm=0x6712aa0) at HttpSessionManager.cc:191
> (gdb) bt
> #0  0x0001000ead15 in _acquire_session (bucket=0x11c0, ip=0x6713138, 
> hostname_hash=@0xb06915d0, sm=0x6712aa0) at HttpSessionManager.cc:191
> #1  0x0001000eb366 in HttpSessionManager::acquire_session 
> (this=0x100445e60, cont=0x6712aa0, ip=0x6713138, hostname=0x4ebc19 
> "127.0.0.1", ua_session=0x2a88980, sm=0x6712aa0) at HttpSessionManager.cc:274
> #2  0x000100105c29 in HttpSM::do_http_server_open (this=0x6712aa0, 
> raw=false) at HttpSM.cc:4384
> ..
> (gdb) p this_ethread()->l1_hash 
> $2 = (SessionBucket *) 0x0
> (gdb) p this_ethread()->event_types
> $3 = 2  (ET_REMAP)
> {code}
> Using separate remap processor is a hidden option, and I enable it by 
> accident.. (Does anyone use it in prod?)
> I noticed HttpSM::do_http_server_open is always executed by the remap 
> processer ethread (because of 
> action.continuation->handleEvent(EVENT_REMAP_COMPLETE, NULL), correct me if 
> wrong). While the remap thread was not initialized as ET_NET and has no 
> l1_hash, server session lookup in this ET_REMAP thread will crash.
> I didn't find a quick way to make HttpSM handling EVENT_REMAP_COMPLETE on 
> ET_NET. So a fast workaround would be falling back to global server 
> connection when use_remap_processor.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2784) header_rewrite fails to build on FreeBSD(10)

2014-05-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-2784:
-

Commit 658138f061ee15be378d159d50ad941823318164 in trafficserver's branch 
refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=658138f ]

Added TS-2786, TS-2784 to CHANGES.


> header_rewrite fails to build on FreeBSD(10)
> 
>
> Key: TS-2784
> URL: https://issues.apache.org/jira/browse/TS-2784
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: Leif Hedstrom
>Assignee: Leif Hedstrom
> Fix For: 5.0.0
>
>
> {code}
>   CXX  expander.lo
> expander.cc:41:28: error: member access into incomplete type 'const struct 
> sockaddr_in'
> inet_ntop(s_sockaddr_in->sin_family, &s_sockaddr_in->sin_addr, res, 
> INET_ADDRSTRLEN);
>^
> expander.cc:30:16: note: forward declaration of 'sockaddr_in'
>   const struct sockaddr_in *s_sockaddr_in;
>^
> expander.cc:45:29: error: member access into incomplete type 'const struct 
> sockaddr_in6'
> inet_ntop(s_sockaddr_in6->sin6_family, &s_sockaddr_in6->sin6_addr, res, 
> INET6_ADDRSTRLEN);
> ^
> expander.cc:31:16: note: forward declaration of 'sockaddr_in6'
>   const struct sockaddr_in6 *s_sockaddr_in6;
>^
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2786) Lua plugin does not build on FreeBSD10

2014-05-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-2786:
-

Commit 658138f061ee15be378d159d50ad941823318164 in trafficserver's branch 
refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=658138f ]

Added TS-2786, TS-2784 to CHANGES.


> Lua plugin does not build on FreeBSD10
> --
>
> Key: TS-2786
> URL: https://issues.apache.org/jira/browse/TS-2786
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build, Lua, Plugins
>Reporter: Leif Hedstrom
> Fix For: 5.0.0
>
>
> {code}
> libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../../lib/ts 
> -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -I../../../proxy/api 
> -I../../../proxy/api -I../../../lib/ts -I../../../lib/ts 
> -I../../../lib/luajit/src -I/usr/local/include -Dfreebsd 
> -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT 
> -I/usr/local/include/tcl8.6 -g -pipe -Wall -Qunused-arguments -O3 
> -feliminate-unused-debug-symbols -fno-strict-aliasing -Werror -MT 
> tslua_la-ts_lua_client_response.lo -MD -MP -MF 
> .deps/tslua_la-ts_lua_client_response.Tpo -c ts_lua_client_response.c  -fPIC 
> -DPIC -o .libs/tslua_la-ts_lua_client_response.o
> ts_lua_client_request.c:387:80: error: incomplete definition of type 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>   
> ~^
> ts_lua_client_request.c:387:56: note: forward declaration of 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>^
> ts_lua_client_request.c:389:82: error: incomplete definition of type 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
>
> ~~^
> ts_lua_client_request.c:389:57: note: forward declaration of 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
> ^
> ts_lua_client_request.c:415:53: error: incomplete definition of type 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
>~^
> ts_lua_client_request.c:415:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:417:54: error: incomplete definition of type 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>~~^
> ts_lua_client_request.c:417:29: note: forward declaration of 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
> ^
> ts_lua_client_request.c:447:53: error: incomplete definition of type 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
>~^
> ts_lua_client_request.c:447:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:448:80: error: incomplete definition of type 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>   
> ~^
> ts_lua_client_request.c:447:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:451:54: error: incomplete definition of type 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>~~^
> ts_lua_client_request.c:451:29: note: forward declaration of 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
> ^
> ts_lua_client_request.c:452:82: error: incomplete definition of type 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
>

[jira] [Commented] (TS-2786) Lua plugin does not build on FreeBSD10

2014-05-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-2786:
-

Commit c6227192c3ae900871025a309fe066a5e8245ef4 in trafficserver's branch 
refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=c622719 ]

TS-2786 Lua plugin does not build on FBSD10


> Lua plugin does not build on FreeBSD10
> --
>
> Key: TS-2786
> URL: https://issues.apache.org/jira/browse/TS-2786
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build, Lua, Plugins
>Reporter: Leif Hedstrom
> Fix For: 5.0.0
>
>
> {code}
> libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../../lib/ts 
> -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -I../../../proxy/api 
> -I../../../proxy/api -I../../../lib/ts -I../../../lib/ts 
> -I../../../lib/luajit/src -I/usr/local/include -Dfreebsd 
> -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT 
> -I/usr/local/include/tcl8.6 -g -pipe -Wall -Qunused-arguments -O3 
> -feliminate-unused-debug-symbols -fno-strict-aliasing -Werror -MT 
> tslua_la-ts_lua_client_response.lo -MD -MP -MF 
> .deps/tslua_la-ts_lua_client_response.Tpo -c ts_lua_client_response.c  -fPIC 
> -DPIC -o .libs/tslua_la-ts_lua_client_response.o
> ts_lua_client_request.c:387:80: error: incomplete definition of type 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>   
> ~^
> ts_lua_client_request.c:387:56: note: forward declaration of 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>^
> ts_lua_client_request.c:389:82: error: incomplete definition of type 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
>
> ~~^
> ts_lua_client_request.c:389:57: note: forward declaration of 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
> ^
> ts_lua_client_request.c:415:53: error: incomplete definition of type 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
>~^
> ts_lua_client_request.c:415:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:417:54: error: incomplete definition of type 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>~~^
> ts_lua_client_request.c:417:29: note: forward declaration of 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
> ^
> ts_lua_client_request.c:447:53: error: incomplete definition of type 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
>~^
> ts_lua_client_request.c:447:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:448:80: error: incomplete definition of type 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>   
> ~^
> ts_lua_client_request.c:447:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:451:54: error: incomplete definition of type 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>~~^
> ts_lua_client_request.c:451:29: note: forward declaration of 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
> ^
> ts_lua_client_request.c:452:82: error: incomplete definition of type 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
>   

[jira] [Resolved] (TS-2786) Lua plugin does not build on FreeBSD10

2014-05-06 Thread Leif Hedstrom (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-2786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leif Hedstrom resolved TS-2786.
---

Resolution: Fixed

> Lua plugin does not build on FreeBSD10
> --
>
> Key: TS-2786
> URL: https://issues.apache.org/jira/browse/TS-2786
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build, Lua, Plugins
>Reporter: Leif Hedstrom
> Fix For: 5.0.0
>
>
> {code}
> libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../../lib/ts 
> -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -I../../../proxy/api 
> -I../../../proxy/api -I../../../lib/ts -I../../../lib/ts 
> -I../../../lib/luajit/src -I/usr/local/include -Dfreebsd 
> -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT 
> -I/usr/local/include/tcl8.6 -g -pipe -Wall -Qunused-arguments -O3 
> -feliminate-unused-debug-symbols -fno-strict-aliasing -Werror -MT 
> tslua_la-ts_lua_client_response.lo -MD -MP -MF 
> .deps/tslua_la-ts_lua_client_response.Tpo -c ts_lua_client_response.c  -fPIC 
> -DPIC -o .libs/tslua_la-ts_lua_client_response.o
> ts_lua_client_request.c:387:80: error: incomplete definition of type 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>   
> ~^
> ts_lua_client_request.c:387:56: note: forward declaration of 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>^
> ts_lua_client_request.c:389:82: error: incomplete definition of type 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
>
> ~~^
> ts_lua_client_request.c:389:57: note: forward declaration of 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
> ^
> ts_lua_client_request.c:415:53: error: incomplete definition of type 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
>~^
> ts_lua_client_request.c:415:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:417:54: error: incomplete definition of type 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>~~^
> ts_lua_client_request.c:417:29: note: forward declaration of 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
> ^
> ts_lua_client_request.c:447:53: error: incomplete definition of type 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
>~^
> ts_lua_client_request.c:447:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:448:80: error: incomplete definition of type 'struct 
> sockaddr_in'
> inet_ntop(AF_INET, (const void *)&((struct sockaddr_in 
> *)client_ip)->sin_addr, cip, sizeof(cip));
>   
> ~^
> ts_lua_client_request.c:447:29: note: forward declaration of 'struct 
> sockaddr_in'
> port = ((struct sockaddr_in *)client_ip)->sin_port;
> ^
> ts_lua_client_request.c:451:54: error: incomplete definition of type 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
>~~^
> ts_lua_client_request.c:451:29: note: forward declaration of 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
> ^
> ts_lua_client_request.c:452:82: error: incomplete definition of type 'struct 
> sockaddr_in6'
> inet_ntop(AF_INET6, (const void *)&((struct sockaddr_in6 
> *)client_ip)->sin6_addr, cip, sizeof(cip));
>
> ~~^
> ts_lua_client_request.c:451:29: note: forward declaration of 'struct 
> sockaddr_in6'
> port = ((struct sockaddr_in6 *)client_ip)->sin6_port;
> ^
> 8 errors generated.
> gmake[3]: *** [t