Re: Catch and modify OS conection

2010-12-09 Thread Victor Lucero
may i suggest just add a new hook before OS conection (post cache miss and previous to pick address (http://trafficserver.apache.org/docs/v2/sdk/HTTPHooksAndTransactions.html) if there's no health servers just send to the first (so it will fail)or just send back a error. in another part of th

Re: [DISCUSS] Change SDK return values?

2010-12-09 Thread Igor Galić
- "Leif Hedstrom" wrote: > Hi all, > > there's been some discussions about cleaning up how our APIs (SDK) > deals > with return values. Right now, it's sort of a mess, with different > APIs > using different standards (e.g. return a POD data type, return a > TSReturnCode, return an int e

Re: [DISCUSS] Change SDK return values?

2010-12-09 Thread Alan M. Carroll
#3, +1. While this is a pain in specific instances, overall it's a win for ease of use to have a very consistent set of signatures.

Re: [DISCUSS] Change SDK return values?

2010-12-09 Thread Jason
I have to admit that #3 would be very useful, and would help plug-in developers. +1 for that. On Dec 9, 2010, at 11:14 AM, Igor Galić wrote: > > - "Leif Hedstrom" wrote: > >> Hi all, >> >> there's been some discussions about cleaning up how our APIs (SDK) >> deals >> with return values.

Re: [DISCUSS] Change SDK return values?

2010-12-09 Thread Victor Lucero
for order purposes looks like #3 is a good thing +1 --Victor Lucero Plugin developer wannabe. El 09-12-2010, a las 13:42, Jason escribió: > I have to admit that #3 would be very useful, and would help plug-in > developers. +1 for that. > > On Dec 9, 2010, at 11:14 AM, Igor Galić wrote: > >>

Re: [DISCUSS] Change SDK return values?

2010-12-09 Thread Alan M. Carroll
A point that came up in chat is the question of "can't fail" API calls, which are those that current take no arguments. Examples would be TSTrafficServerVersionGetMajor() or TSPluginDirGet(). Should we have an exception for API calls that absolutely cannot fail? I think I would support such an

Re: [DISCUSS] Change SDK return values?

2010-12-09 Thread Igor Galić
- "Alan M. Carroll" wrote: > A point that came up in chat is the question of "can't fail" API > calls, which are those that current take no arguments. Examples would > be TSTrafficServerVersionGetMajor() or TSPluginDirGet(). Should we > have an exception for API calls that absolutely cannot

Re: [DISCUSS] Change SDK return values?

2010-12-09 Thread John Plevyak
I agree with the can't fail exception. If the function would return a constant TS_SUCCESS and it is reasonable that the user would expect that it would, then it could return something other than the enum. If it was me, I would permit exceptions for silly things like checking the type/non-null o

Re: Catch and modify OS conection

2010-12-09 Thread Victor Lucero
looking thought the code i found this. (HttpSM:4197) Action *pvc_action_handle = t->connect_re(this); the values like t_state.current.server->name t_state.current.server->ip got what i need . so now i need a way to configure this elements and do some scheduled health check, there is a way to a

Documentation reboot

2010-12-09 Thread Igor Galić
Hi folks, I'd like to migrate the SDK (and the admin guide too) as soon as possible from plain HTML to plain text. The Apache CMS: https://blogs.apache.org/infra/entry/the_asf_cms offers a good opportunity to do exactly that, and many Apache projects are migrating to it. For the SDK I am proposi

SLOCcount

2010-12-09 Thread Leif Hedstrom
Attached. Things are getter cleaner and cleaner, this is much better than a year ago :). I still think we can get thinner before getting fatter again. Cheers, -- leif SLOCDirectory SLOC-by-Language (Sorted) 186470 proxy cpp=179815,ansic=2707,sh=2516,tcl=671,perl=621,exp=1