OpenSRF.git
12 years agoadded a memcache client and test
erickson [Wed, 16 May 2007 19:30:03 +0000 (19:30 +0000)]
added a memcache client and test

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@892 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoadded a settings server client and test. made the global config object wrapped in...
erickson [Wed, 16 May 2007 17:27:56 +0000 (17:27 +0000)]
added a settings server client and test.  made the global config object wrapped in a method instead of using static methods all around

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@891 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoimplemented client bootstrap. created a status object to model connection statuses...
erickson [Wed, 16 May 2007 14:38:02 +0000 (14:38 +0000)]
implemented client bootstrap.  created a status object to model connection statuses.  remodeled the client test code to run arbitrary methods

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@890 9efc2488-bf62-4759-914b-345cdb29e865

12 years agofixed some doc strings. added sample makefile
erickson [Fri, 11 May 2007 23:10:26 +0000 (23:10 +0000)]
fixed some doc strings.  added sample makefile

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@886 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoadded a lot of documentation
erickson [Fri, 11 May 2007 22:53:43 +0000 (22:53 +0000)]
added a lot of documentation

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@885 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoimplemented enough of the stack/session logic to make stateless requests and receive...
erickson [Fri, 11 May 2007 15:45:27 +0000 (15:45 +0000)]
implemented enough of the stack/session logic to make stateless requests and receive responses

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@884 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoadding more base objects, started on stack layer. added config parser
erickson [Thu, 10 May 2007 20:59:27 +0000 (20:59 +0000)]
adding more base objects, started on stack layer. added config parser

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@883 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoadded JSON reading ability, including serializable objects
erickson [Thu, 10 May 2007 19:56:08 +0000 (19:56 +0000)]
added JSON reading ability, including serializable objects

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@882 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoadded support for opensrf-serializable objects and JSON output of those objects....
erickson [Thu, 10 May 2007 16:31:52 +0000 (16:31 +0000)]
added support for opensrf-serializable objects and JSON output of those objects. updated some JSON test code

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@881 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoadded initial opensrf stack layer objects. more tuning/testing of the jabber layer
erickson [Thu, 10 May 2007 02:51:51 +0000 (02:51 +0000)]
added initial opensrf stack layer objects.  more tuning/testing of the jabber layer

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@880 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoprintf family format fixup found (har har) and suggested by Scott McKellar -- %lf...
miker [Wed, 9 May 2007 20:20:46 +0000 (20:20 +0000)]
printf family format fixup found (har har) and suggested by Scott McKellar -- %lf -> %f
(no need for the precision and/or scale of %Lf)

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@879 9efc2488-bf62-4759-914b-345cdb29e865

12 years agofixed some logic bugs with the body parsing, added some comments
erickson [Wed, 9 May 2007 18:13:38 +0000 (18:13 +0000)]
fixed some logic bugs with the body parsing, added some comments

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@878 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoadded the woodstox stax jar files
erickson [Wed, 9 May 2007 18:00:36 +0000 (18:00 +0000)]
added the woodstox stax jar files

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@877 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoadded java jabber layer
erickson [Wed, 9 May 2007 17:45:42 +0000 (17:45 +0000)]
added java jabber layer

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@876 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoadded some more index sanity checks. added const qualifier where necessary
erickson [Mon, 7 May 2007 14:26:56 +0000 (14:26 +0000)]
added some more index sanity checks.  added const qualifier where necessary

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@875 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoadded size check to constructor
erickson [Mon, 7 May 2007 14:07:36 +0000 (14:07 +0000)]
added size check to constructor

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@874 9efc2488-bf62-4759-914b-345cdb29e865

12 years agocommitting scott m's buffer protection patch
erickson [Thu, 3 May 2007 15:10:06 +0000 (15:10 +0000)]
committing scott m's buffer protection patch

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@872 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoExiting with a usable error message rather than segfaulting
miker [Sun, 29 Apr 2007 20:11:51 +0000 (20:11 +0000)]
Exiting with a usable error message rather than segfaulting
 - patch provided by Scott McKellar
 - http://list.georgialibraries.org/pipermail/open-ils-dev/2007-April/000727.html

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@866 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoAvoiding memory leaks in string opperations
miker [Sat, 28 Apr 2007 23:46:02 +0000 (23:46 +0000)]
Avoiding memory leaks in string opperations
  - patch provided by Scott McKellar
  - http://list.georgialibraries.org/pipermail/open-ils-dev/2007-April/000724.html

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@864 9efc2488-bf62-4759-914b-345cdb29e865

12 years agocompletely untested and possibly broken settings extention to retrieve defaults when...
miker [Thu, 26 Apr 2007 02:12:45 +0000 (02:12 +0000)]
completely untested and possibly broken settings extention to retrieve defaults when host specific fails

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@863 9efc2488-bf62-4759-914b-345cdb29e865

12 years agomade new child creation more robust
erickson [Mon, 9 Apr 2007 19:52:00 +0000 (19:52 +0000)]
made new child creation more robust

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@862 9efc2488-bf62-4759-914b-345cdb29e865

12 years agoTypo reported by Dan Scott
miker [Tue, 3 Apr 2007 03:47:21 +0000 (03:47 +0000)]
Typo reported by Dan Scott

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@860 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremoved some old code and the unnecessary select-as-sleep calls
erickson [Thu, 29 Mar 2007 20:06:05 +0000 (20:06 +0000)]
removed some old code and the unnecessary select-as-sleep calls

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@859 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoapplied patch from Dan to provide an example usage
erickson [Thu, 29 Mar 2007 14:07:13 +0000 (14:07 +0000)]
applied patch from Dan to provide an example usage

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@858 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoforcing int on timeout values in process and timed_read
erickson [Mon, 26 Mar 2007 17:41:51 +0000 (17:41 +0000)]
forcing int on timeout values in process and timed_read

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@853 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded an info log line to log the called method
erickson [Mon, 26 Mar 2007 17:25:48 +0000 (17:25 +0000)]
added an info log line to log the called method

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@852 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremoving install of deprecated files
erickson [Fri, 23 Mar 2007 14:12:46 +0000 (14:12 +0000)]
removing install of deprecated files

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@850 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremoving deprecated files
erickson [Fri, 23 Mar 2007 02:16:36 +0000 (02:16 +0000)]
removing deprecated files

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@849 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremoved the deprecated rest_gateway config; added comment on router name changes
erickson [Fri, 23 Mar 2007 02:13:02 +0000 (02:13 +0000)]
removed the deprecated rest_gateway config; added comment on router name changes

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@848 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded "use Net::Domain" in the package that calls hostfqdn()
erickson [Thu, 22 Mar 2007 19:49:08 +0000 (19:49 +0000)]
added "use Net::Domain" in the package that calls hostfqdn()

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@847 9efc2488-bf62-4759-914b-345cdb29e865

13 years agospacing adjustment
miker [Thu, 22 Mar 2007 00:06:21 +0000 (00:06 +0000)]
spacing adjustment

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@846 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadjusting comment in example config re bug #518
miker [Thu, 22 Mar 2007 00:04:56 +0000 (00:04 +0000)]
adjusting comment in example config re bug #518

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@845 9efc2488-bf62-4759-914b-345cdb29e865

13 years agousing Net::Domain instead of the shell to get the fqdn of the current host
miker [Tue, 20 Mar 2007 00:47:54 +0000 (00:47 +0000)]
using Net::Domain instead of the shell to get the fqdn of the current host

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@844 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded more portable (perl) hostname fetching to pass to the C code, updated docs
erickson [Mon, 19 Mar 2007 22:04:57 +0000 (22:04 +0000)]
added more portable (perl) hostname fetching to pass to the C code, updated docs

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@843 9efc2488-bf62-4759-914b-345cdb29e865

13 years agolowered some logging
erickson [Thu, 15 Mar 2007 23:49:14 +0000 (23:49 +0000)]
lowered some logging

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@841 9efc2488-bf62-4759-914b-345cdb29e865

13 years agorefactored the unix::server config handling by getting rid of the old temp config...
erickson [Wed, 7 Mar 2007 21:22:20 +0000 (21:22 +0000)]
refactored the unix::server config handling by getting rid of the old temp config files
and passing config params directly to the net::server run() method

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@840 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoapplying spelling fixes and making db names/passwords match accross default config...
erickson [Mon, 5 Mar 2007 20:41:52 +0000 (20:41 +0000)]
applying spelling fixes and making db names/passwords match accross default config files thanks to patch by Dan Scott.  Thanks, Dan!

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@838 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremoving unused log section
erickson [Thu, 22 Feb 2007 19:22:31 +0000 (19:22 +0000)]
removing unused log section

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@832 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded the <client> block to the gateway. moving everything to "localhost" for consis...
erickson [Thu, 22 Feb 2007 17:02:01 +0000 (17:02 +0000)]
added the <client> block to the gateway.  moving everything to "localhost" for consistency

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@831 9efc2488-bf62-4759-914b-345cdb29e865

13 years agodo a kill -9 after kill -s INT to make sure no stubborn processes stick around
erickson [Thu, 22 Feb 2007 16:22:24 +0000 (16:22 +0000)]
do a kill -9 after kill -s INT to make sure no stubborn processes stick around

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@830 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremoving old, unused child_finish_hook
erickson [Wed, 7 Feb 2007 16:12:38 +0000 (16:12 +0000)]
removing old, unused child_finish_hook

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@822 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded child exit handling code and example
erickson [Wed, 7 Feb 2007 15:00:06 +0000 (15:00 +0000)]
added child exit handling code and example

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@821 9efc2488-bf62-4759-914b-345cdb29e865

13 years agofixed bool parsing bug -- off by one on the string size enforcement
erickson [Mon, 5 Feb 2007 16:20:39 +0000 (16:20 +0000)]
fixed bool parsing bug -- off by one on the string size enforcement

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@817 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded a is-true wrapper for bool objects
erickson [Mon, 5 Feb 2007 15:47:11 +0000 (15:47 +0000)]
added a is-true wrapper for bool objects

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@816 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded timeout url param to set the request timeout
erickson [Fri, 26 Jan 2007 20:24:37 +0000 (20:24 +0000)]
added timeout url param to set the request timeout

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@815 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoAdded support for the opensrf XID, which is a transaction string that's passed
erickson [Thu, 25 Jan 2007 21:49:48 +0000 (21:49 +0000)]
Added support for the opensrf XID, which is a transaction string that's passed
around via the jabber message and inserted into each logged message to relate
activity accross different processes

implemented a child onExit handler for the C stack for cleaning up db connections, etc.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@814 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremoved libjudy dependencies from makefiles
erickson [Thu, 18 Jan 2007 19:30:34 +0000 (19:30 +0000)]
removed libjudy dependencies from makefiles

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@813 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoreduced hash size (just now comitting, been like this for a while on dev)
erickson [Fri, 5 Jan 2007 20:07:38 +0000 (20:07 +0000)]
reduced hash size (just now comitting, been like this for a while on dev)

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@812 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadding python libs
erickson [Fri, 5 Jan 2007 19:14:58 +0000 (19:14 +0000)]
adding python libs

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@811 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoprintf format fix
miker [Tue, 2 Jan 2007 22:00:47 +0000 (22:00 +0000)]
printf format fix

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@809 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoany unhandled char below ascii 32 will now be encoded as utf8 (\uXXXX)
erickson [Tue, 2 Jan 2007 21:33:59 +0000 (21:33 +0000)]
any unhandled char below ascii 32 will now be encoded as utf8 (\uXXXX)

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@808 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremoved big hash/array dependencies to remove libjudy requirements
erickson [Mon, 18 Dec 2006 16:00:53 +0000 (16:00 +0000)]
removed big hash/array dependencies to remove libjudy requirements

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@807 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoreplaced (printf style) format buffer calls with non-format calls to prevent issues...
erickson [Wed, 13 Dec 2006 17:12:09 +0000 (17:12 +0000)]
replaced (printf style) format buffer calls with non-format calls to prevent issues with embedded % symbols

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@806 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremoved two warning logs to prevent the unixserver logs from bloating up with the...
erickson [Mon, 11 Dec 2006 16:19:01 +0000 (16:19 +0000)]
removed two warning logs to prevent the unixserver logs from bloating up with the warnings

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@805 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded space in the utf buffer to handle 3-char characters
erickson [Thu, 30 Nov 2006 15:09:32 +0000 (15:09 +0000)]
added space in the utf buffer to handle 3-char characters

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@804 9efc2488-bf62-4759-914b-345cdb29e865

13 years agooff-by-one ... arg
miker [Mon, 27 Nov 2006 17:27:22 +0000 (17:27 +0000)]
off-by-one ... arg

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@803 9efc2488-bf62-4759-914b-345cdb29e865

13 years agohandle the first byte all special-like with utf-8
miker [Sun, 26 Nov 2006 18:05:29 +0000 (18:05 +0000)]
handle the first byte all special-like with utf-8

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@802 9efc2488-bf62-4759-914b-345cdb29e865

13 years agougly, but it does not warn
miker [Wed, 22 Nov 2006 21:41:54 +0000 (21:41 +0000)]
ugly, but it does not warn

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@801 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoinline the utf8 stuff
miker [Wed, 22 Nov 2006 20:45:14 +0000 (20:45 +0000)]
inline the utf8 stuff

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@800 9efc2488-bf62-4759-914b-345cdb29e865

13 years agonew unicode stuff compiles now
miker [Wed, 22 Nov 2006 20:23:59 +0000 (20:23 +0000)]
new unicode stuff compiles now

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@799 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoswitching to some UTF8 code from perl
miker [Wed, 22 Nov 2006 20:14:10 +0000 (20:14 +0000)]
switching to some UTF8 code from perl

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@798 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoswitching to some UTF8 code from perl
miker [Wed, 22 Nov 2006 20:08:29 +0000 (20:08 +0000)]
switching to some UTF8 code from perl

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@797 9efc2488-bf62-4759-914b-345cdb29e865

13 years agorefactored redunant perl2JSON call
erickson [Tue, 21 Nov 2006 21:51:49 +0000 (21:51 +0000)]
refactored redunant perl2JSON call

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@795 9efc2488-bf62-4759-914b-345cdb29e865

13 years agocommitting a simple jabber registration script
erickson [Mon, 20 Nov 2006 14:09:12 +0000 (14:09 +0000)]
committing a simple jabber registration script

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@794 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded a comment
erickson [Wed, 11 Oct 2006 16:56:42 +0000 (16:56 +0000)]
added a comment

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@792 9efc2488-bf62-4759-914b-345cdb29e865

13 years agouncomment some unnecessary code
erickson [Wed, 11 Oct 2006 16:44:51 +0000 (16:44 +0000)]
uncomment some unnecessary code

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@791 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded a log line that will hopefully give us more info on what appears to
erickson [Tue, 10 Oct 2006 14:52:12 +0000 (14:52 +0000)]
added a log line that will hopefully give us more info on what appears to
be a network error of some type, without turning the logging up

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@790 9efc2488-bf62-4759-914b-345cdb29e865

13 years agochanged a log level to clear up some error logging
erickson [Tue, 10 Oct 2006 14:20:56 +0000 (14:20 +0000)]
changed a log level to clear up some error logging

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@789 9efc2488-bf62-4759-914b-345cdb29e865

13 years agochanged log line
erickson [Tue, 3 Oct 2006 01:31:10 +0000 (01:31 +0000)]
changed log line

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@788 9efc2488-bf62-4759-914b-345cdb29e865

13 years agostateful backend sessions now only timeout of no request was received within
erickson [Sun, 24 Sep 2006 18:27:34 +0000 (18:27 +0000)]
stateful backend sessions now only timeout of no request was received within
the keepalive timeout.  previously, if a request took long enough to process,
the session would timeout after sending the result back because the entire
time the forker waited on queue_wait exceeded the timeout

updated some logging

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@787 9efc2488-bf62-4759-914b-345cdb29e865

13 years agofixing month calculation in interval_to_seconds
miker [Fri, 15 Sep 2006 16:27:46 +0000 (16:27 +0000)]
fixing month calculation in interval_to_seconds

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@786 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoNow, when no children are available to pass a request to, the parent
erickson [Tue, 12 Sep 2006 02:03:52 +0000 (02:03 +0000)]
Now, when no children are available to pass a request to, the parent
process blocks on a select() call until any child is available.

previously, the parent would sleep 50ms, do a select() poll, sleep again, etc.

The new approach has the potential to be up to almost 50ms faster at finding
an available child when the parent is forced to wait.  plus, polling is just dumb

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@785 9efc2488-bf62-4759-914b-345cdb29e865

13 years agofinally implemented opensrf.system.echo[.atomic] - useful for nagios-style testing...
erickson [Sat, 9 Sep 2006 17:29:13 +0000 (17:29 +0000)]
finally implemented opensrf.system.echo[.atomic] - useful for nagios-style testing against all C apps

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@784 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoescaping hash keys
erickson [Fri, 8 Sep 2006 17:25:03 +0000 (17:25 +0000)]
escaping hash keys

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@783 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoelevated response log to info because it is crucial for determing who a perl backend...
erickson [Wed, 6 Sep 2006 04:23:49 +0000 (04:23 +0000)]
elevated response log to info because it is crucial for determing who a perl backend is talking to

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@782 9efc2488-bf62-4759-914b-345cdb29e865

13 years agowhen the gateway is not bootstrapped.. it is useless, doing a short sleep, then going...
erickson [Wed, 6 Sep 2006 04:22:03 +0000 (04:22 +0000)]
when the gateway is not bootstrapped.. it is useless, doing a short sleep, then going away

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@781 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded .1 second sleep to inbound processer when it goes nuts on reading empty socket...
erickson [Wed, 6 Sep 2006 04:20:27 +0000 (04:20 +0000)]
added .1 second sleep to inbound processer when it goes nuts on reading empty socket data.. still not sure what the cause is, but this will prevent the log storm

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@780 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoelevated recv timeout to INFO cuz it is important
erickson [Tue, 5 Sep 2006 13:09:56 +0000 (13:09 +0000)]
elevated recv timeout to INFO cuz it is important

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@779 9efc2488-bf62-4759-914b-345cdb29e865

13 years agomoved processing duration up to info
erickson [Tue, 5 Sep 2006 03:39:38 +0000 (03:39 +0000)]
moved processing duration up to info

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@778 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded message processing time to C stack
erickson [Tue, 5 Sep 2006 03:34:15 +0000 (03:34 +0000)]
added message processing time to C stack

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@777 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded logic to reconnect to jabber if the child receiving data realizes the connectio...
erickson [Mon, 4 Sep 2006 19:32:24 +0000 (19:32 +0000)]
added logic to reconnect to jabber if the child receiving data realizes the connection is gone

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@776 9efc2488-bf62-4759-914b-345cdb29e865

13 years agofixed bug in child pipe reading code which limited the total readable bytes
erickson [Sun, 3 Sep 2006 21:30:33 +0000 (21:30 +0000)]
fixed bug in child pipe reading code which limited the total readable bytes

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@775 9efc2488-bf62-4759-914b-345cdb29e865

13 years agodoing better job of propogating network errors up the stack
erickson [Fri, 1 Sep 2006 21:29:43 +0000 (21:29 +0000)]
doing better job of propogating network errors up the stack

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@774 9efc2488-bf62-4759-914b-345cdb29e865

13 years agochanged format of log line just a little
erickson [Thu, 31 Aug 2006 00:08:32 +0000 (00:08 +0000)]
changed format of log line just a little

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@773 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded var check to prevent warnings on the numerous timed_read(0) calls
erickson [Wed, 30 Aug 2006 15:23:24 +0000 (15:23 +0000)]
added var check to prevent warnings on the numerous timed_read(0) calls

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@772 9efc2488-bf62-4759-914b-345cdb29e865

13 years agochopping up dup messages in Client::process()
miker [Wed, 30 Aug 2006 00:35:12 +0000 (00:35 +0000)]
chopping up dup messages in Client::process()

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@771 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoput free calls back in to free the xml from messages
erickson [Tue, 29 Aug 2006 19:02:48 +0000 (19:02 +0000)]
put free calls back in to free the xml from messages

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@770 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded a log line
erickson [Mon, 28 Aug 2006 21:50:32 +0000 (21:50 +0000)]
added a log line

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@769 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremoved a bunch of old code
erickson [Mon, 28 Aug 2006 12:52:26 +0000 (12:52 +0000)]
removed a bunch of old code

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@768 9efc2488-bf62-4759-914b-345cdb29e865

13 years agomoved json parsing methods to non-printf style methods, added new Fmt to behave the...
erickson [Sun, 27 Aug 2006 17:02:08 +0000 (17:02 +0000)]
moved json parsing methods to non-printf style methods, added new Fmt to behave the old methods did (which treats all embedded % chars like format flag chars)

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@767 9efc2488-bf62-4759-914b-345cdb29e865

13 years agochanged some logging
erickson [Sun, 27 Aug 2006 13:28:34 +0000 (13:28 +0000)]
changed some logging

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@766 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoadded escape for 0x1 char
erickson [Mon, 21 Aug 2006 22:09:04 +0000 (22:09 +0000)]
added escape for 0x1 char

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@765 9efc2488-bf62-4759-914b-345cdb29e865

13 years agomore aggressive uniquness measures just to be sure
erickson [Mon, 21 Aug 2006 21:42:00 +0000 (21:42 +0000)]
more aggressive uniquness measures just to be sure

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@764 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoclearing tmp buffer before use
erickson [Sun, 20 Aug 2006 16:03:17 +0000 (16:03 +0000)]
clearing tmp buffer before use

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@763 9efc2488-bf62-4759-914b-345cdb29e865

13 years agotruncate messages more to prevent syslog overflow errors
erickson [Sun, 20 Aug 2006 15:58:43 +0000 (15:58 +0000)]
truncate messages more to prevent syslog overflow errors

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@762 9efc2488-bf62-4759-914b-345cdb29e865

13 years agosending authtoken in request header and logging to activity log
erickson [Sat, 19 Aug 2006 17:08:13 +0000 (17:08 +0000)]
sending authtoken in request header and logging to activity log

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@761 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoupdated log output to be more srfsh-ish
erickson [Sat, 19 Aug 2006 16:33:11 +0000 (16:33 +0000)]
updated log output to be more srfsh-ish

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@760 9efc2488-bf62-4759-914b-345cdb29e865

13 years agofixed log line
erickson [Sat, 19 Aug 2006 16:12:32 +0000 (16:12 +0000)]
fixed log line

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@759 9efc2488-bf62-4759-914b-345cdb29e865

13 years agologging cleanup
miker [Thu, 17 Aug 2006 15:21:56 +0000 (15:21 +0000)]
logging cleanup

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@758 9efc2488-bf62-4759-914b-345cdb29e865

13 years agoremove method call that does not exist
erickson [Mon, 14 Aug 2006 19:03:46 +0000 (19:03 +0000)]
remove method call that does not exist

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@757 9efc2488-bf62-4759-914b-345cdb29e865