]> git.evergreen-ils.org Git - OpenSRF.git/log
OpenSRF.git
15 years agowon't append fake LoadModule ad infinitum anymore sboyette
sboyette [Wed, 13 Aug 2008 17:47:17 +0000 (17:47 +0000)]
won't append fake LoadModule ad infinitum anymore

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

15 years agoadding inc for M::I
sboyette [Wed, 13 Aug 2008 17:27:22 +0000 (17:27 +0000)]
adding inc for M::I

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

15 years agoperl install stuffs
sboyette [Wed, 13 Aug 2008 17:17:37 +0000 (17:17 +0000)]
perl install stuffs

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

15 years agoadded hack to slipstream fake LoadModule into apache config
sboyette [Wed, 13 Aug 2008 16:45:38 +0000 (16:45 +0000)]
added hack to slipstream fake LoadModule into apache config

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

15 years agoundoing unintentional makefile frobbery
sboyette [Wed, 13 Aug 2008 15:49:07 +0000 (15:49 +0000)]
undoing unintentional makefile frobbery

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

15 years agochanging perlmods to perl
sboyette [Wed, 13 Aug 2008 15:37:10 +0000 (15:37 +0000)]
changing perlmods to perl

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

15 years agoautogen.sh no longer blithely carries on and tells you to run ./configure even if...
sboyette [Mon, 11 Aug 2008 19:32:50 +0000 (19:32 +0000)]
autogen.sh no longer blithely carries on and tells you to run ./configure even if the entire automake/autotools chain is missing. there's probably more elegant ways to do it, but this works.

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

15 years agomanual merge of miker's changes
sboyette [Mon, 11 Aug 2008 18:44:33 +0000 (18:44 +0000)]
manual merge of miker's changes

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

15 years agoPOD frobbage
sboyette [Mon, 11 Aug 2008 18:07:02 +0000 (18:07 +0000)]
POD frobbage

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

15 years agomisc changes, yanking boilerplate tests
sboyette [Fri, 8 Aug 2008 22:26:54 +0000 (22:26 +0000)]
misc changes, yanking boilerplate tests

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

15 years agoUNIVERSAL::require isn't core; schwern wrote it
sboyette [Fri, 8 Aug 2008 22:07:16 +0000 (22:07 +0000)]
UNIVERSAL::require isn't core; schwern wrote it

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

15 years agolibnet is not installable, derrr
sboyette [Fri, 8 Aug 2008 22:05:21 +0000 (22:05 +0000)]
libnet is not installable, derrr

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

15 years agoupdates
sboyette [Fri, 8 Aug 2008 21:49:15 +0000 (21:49 +0000)]
updates

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

15 years agodropped Jabber
sboyette [Fri, 8 Aug 2008 21:10:40 +0000 (21:10 +0000)]
dropped Jabber

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

15 years agoadding deps
sboyette [Fri, 8 Aug 2008 21:07:19 +0000 (21:07 +0000)]
adding deps

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

15 years agoremoving rest of old Jabber code
sboyette [Fri, 8 Aug 2008 21:05:57 +0000 (21:05 +0000)]
removing rest of old Jabber code

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

15 years agodropping old Jabber code
sboyette [Fri, 8 Aug 2008 21:05:14 +0000 (21:05 +0000)]
dropping old Jabber code

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

15 years agobringing manifest up-to-date
sboyette [Fri, 8 Aug 2008 20:38:15 +0000 (20:38 +0000)]
bringing manifest up-to-date

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

15 years agochanging Makefile.PL to M::I from EU:MM
sboyette [Fri, 8 Aug 2008 20:12:49 +0000 (20:12 +0000)]
changing Makefile.PL to M::I from EU:MM

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

15 years agoremoving old perlmods tree
sboyette [Thu, 7 Aug 2008 21:01:26 +0000 (21:01 +0000)]
removing old perlmods tree

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

15 years agomoving OpenSRF tree
sboyette [Thu, 7 Aug 2008 21:01:02 +0000 (21:01 +0000)]
moving OpenSRF tree

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

15 years agomoving OpenSRF.pm
sboyette [Thu, 7 Aug 2008 21:00:46 +0000 (21:00 +0000)]
moving OpenSRF.pm

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

15 years agoadding basic module structure
sboyette [Thu, 7 Aug 2008 20:55:41 +0000 (20:55 +0000)]
adding basic module structure

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

15 years agobeginning perl movification
sboyette [Thu, 7 Aug 2008 20:50:33 +0000 (20:50 +0000)]
beginning perl movification

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

15 years agopointless change to test commit
sboyette [Thu, 7 Aug 2008 19:54:04 +0000 (19:54 +0000)]
pointless change to test commit

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

15 years agoModule::Install working branch ... to be merged back for 1.0
miker [Thu, 7 Aug 2008 19:46:11 +0000 (19:46 +0000)]
Module::Install working branch ... to be merged back for 1.0

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

15 years agoRestore RPATH so that we do not need LD_LIBRARY_PATH messing with our environments
dbs [Thu, 7 Aug 2008 16:54:56 +0000 (16:54 +0000)]
Restore RPATH so that we do not need LD_LIBRARY_PATH messing with our environments

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

15 years agoApply patch from Kevin Beswick:
dbs [Wed, 6 Aug 2008 16:22:54 +0000 (16:22 +0000)]
Apply patch from Kevin Beswick:
"add the new opensrf-perl.pl script to the autotools build for OpenSRF"

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

15 years agoUse a slightly more robust scheme for setting OpenSRF locale in DojoSRF.
dbs [Wed, 6 Aug 2008 03:37:07 +0000 (03:37 +0000)]
Use a slightly more robust scheme for setting OpenSRF locale in DojoSRF.

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

15 years agowait for the parent proc to go away before we unlink the file
erickson [Mon, 4 Aug 2008 01:43:34 +0000 (01:43 +0000)]
wait for the parent proc to go away before we unlink the file

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

15 years agochecking browser agent to see if multipart is supported
erickson [Sun, 3 Aug 2008 23:45:57 +0000 (23:45 +0000)]
checking browser agent to see if multipart is supported

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

15 years agokill spawned processes at shutdown time
erickson [Fri, 1 Aug 2008 02:32:29 +0000 (02:32 +0000)]
kill spawned processes at shutdown time
set process name

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

15 years agoThis script provides per-service control of OpenSRF Perl processes. In other words...
erickson [Thu, 31 Jul 2008 13:36:00 +0000 (13:36 +0000)]
This script provides per-service control of OpenSRF Perl processes.  In other words, you can
stop/start/restart individual services.  Note that you can only stop services that have
been started with this script.

TODO
Add start_all, stop_all, and restart_all to manage all host-specific Perl services

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

15 years agosession passing for make_atomic, at least
miker [Tue, 29 Jul 2008 20:42:16 +0000 (20:42 +0000)]
session passing for make_atomic, at least

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

15 years agodoh ... not that way, nope
miker [Tue, 29 Jul 2008 20:00:19 +0000 (20:00 +0000)]
doh ... not that way, nope

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

15 years agogive subrequests access to the session (will not be used by respond())
miker [Tue, 29 Jul 2008 19:20:25 +0000 (19:20 +0000)]
give subrequests access to the session (will not be used by respond())

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

15 years agoGive Apache modules the support they need to work
dbs [Tue, 29 Jul 2008 13:17:03 +0000 (13:17 +0000)]
Give Apache modules the support they need to work
Push the apxs compile stage into the local install steps as it seems to require root privileges to write during build

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

15 years agoFix for installing gateway and translator (thanks to Kevin Beswick)
dbs [Mon, 28 Jul 2008 16:06:27 +0000 (16:06 +0000)]
Fix for installing gateway and translator (thanks to Kevin Beswick)

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

15 years agoThis patch removes the remaining autotools bits for objson, in particular giving
erickson [Mon, 28 Jul 2008 13:44:45 +0000 (13:44 +0000)]
This patch removes the remaining autotools bits for objson, in particular giving
the user the choice of whether to build legacy json.

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

15 years agoCommit autotools patch from Kevin Beswick
dbs [Mon, 28 Jul 2008 03:55:01 +0000 (03:55 +0000)]
Commit autotools patch from Kevin Beswick
(adjusted slightly for Bill's objson API compatibility layer removal)

Enclosed is a patch to update the OpenSRF autotools implementation. It
fixes most bugs such as:
-correctly replacing hardcoded directory paths in various files
-correctly implementing clean, and uninstall make targets
-fixes building src/c-apps modules without the lib prefix
-builds the src/gateway apache modules with apxs
-fixed the naming of the opensrf-c binary

Also, it implements more of the autotools features:
-rolling a tarball with make dist
-enables VPATH (parallel) builds
-checking a distribution with make distcheck

-------------------------------------------

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
   have the right to submit it under the open source license
   indicated in the file; or

(b) The contribution is based upon previous work that, to the best
   of my knowledge, is covered under an appropriate open source
   license and I have the right under that license to submit that
   work with modifications, whether created in whole or in part
   by me, under the same open source license (unless I am
   permitted to submit under a different license), as indicated
   in the file; or

(c) The contribution was provided directly to me by some other
   person who certified (a), (b) or (c) and I have not modified
   it.

(d) I understand and agree that this project and the contribution
   are public and that a record of the contribution (including all
   personal information I submit with it, including my sign-off) is
   maintained indefinitely and may be redistributed consistent with
   this project or the open source license(s) involved.

Signed-off-by: [Kevin Beswick (kevinbeswick00@gmail.com)]
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1375 9efc2488-bf62-4759-914b-345cdb29e865

15 years agoremoving overly agressive locale normalization
miker [Sun, 27 Jul 2008 16:46:21 +0000 (16:46 +0000)]
removing overly agressive locale normalization

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

15 years ago* remove the objson API compat layer.
erickson [Sun, 27 Jul 2008 13:06:45 +0000 (13:06 +0000)]
* remove the objson API compat layer.

* Set the default JSON gateway protocol to non-legacy json

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

15 years agoremoving default config path so we don't have to mangle the C files at install time
erickson [Fri, 25 Jul 2008 15:30:11 +0000 (15:30 +0000)]
removing default config path so we don't have to mangle the C files at install time

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

15 years agono longer in use
erickson [Fri, 25 Jul 2008 02:21:54 +0000 (02:21 +0000)]
no longer in use

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

15 years agoremoved example log line comment
erickson [Fri, 25 Jul 2008 02:16:42 +0000 (02:16 +0000)]
removed example log line comment

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

15 years agoreturning server error on disconnected jabber socket
erickson [Thu, 24 Jul 2008 17:53:37 +0000 (17:53 +0000)]
returning server error on disconnected jabber socket

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

15 years agoCheap hack to enable kbeswick's cheap hack to get opensrf-c
dbs [Thu, 17 Jul 2008 19:43:42 +0000 (19:43 +0000)]
Cheap hack to enable kbeswick's cheap hack to get opensrf-c
automake probably gives us a better way to do this, but hyphens are pesky

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

15 years agoMerge the following patches from Kevin Beswick:
dbs [Thu, 17 Jul 2008 18:15:09 +0000 (18:15 +0000)]
Merge the following patches from Kevin Beswick:
  * fixed location to copy apachetools.h from ...
  * another typo...
  * fixed directory error in copying of header file.
  * move one more copy instruction for a header file.
  * create the perldir and jsdir
  * changed the place where headers are copied... fixed an error which caused them to be copied wrong.
  * fixed a capitalization typo issue in src/Makefile.am
  * updated opensrf.xml.example to use C math and dbmath implementation rather than Perl
  * fixed make distcheck problems -- builddir needed to be changed to srcdir
  * fixed directory replacement in .c file problem stopped the command added in the previous revision from running multiple times, fixed the location of the file to execute the command on.
  * changed where the directory replacement happens for osrf_json_gateway.c (it was after it was compiled rather than before)
  * corrected another error with installing header files ( can't install directories recursively through the 'prefix_PRIMARY = files' apparently)
  * went back to old way of copying perlmods and javascript. it will still be included in dist due to EXTRA_DIST in root makefile
  * fix install of src/javascript and src/perlmods
  * nobase_dist_lib_DATA defined twice... oops!
  * fixed problem with order of execution of targets (install-data-local was being executed before files were copied. resulted in an error)
  * fixed make dist, and changed ways that files are copied to their installed locations
  * fixed path substitution for the rest of the files with hardcoded paths to ensure correct default functionality of opensrf

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

15 years agocommented out the testing debug line
erickson [Wed, 9 Jul 2008 19:35:26 +0000 (19:35 +0000)]
commented out the testing debug line

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

15 years agoadding the http translator
erickson [Wed, 9 Jul 2008 19:18:51 +0000 (19:18 +0000)]
adding the http translator

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

15 years agoadded the string mangling to collapse a set of responses into 1 for non-multipart...
erickson [Wed, 9 Jul 2008 18:33:10 +0000 (18:33 +0000)]
added the string mangling to collapse a set of responses into 1 for non-multipart requests

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

15 years agoadded a buffer_chomp function to drop the last character from the buffer
erickson [Wed, 9 Jul 2008 18:32:37 +0000 (18:32 +0000)]
added a buffer_chomp function to drop the last character from the buffer

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

15 years agousing a static buffer to store the multipart content type string
erickson [Wed, 9 Jul 2008 16:06:01 +0000 (16:06 +0000)]
using a static buffer to store the multipart content type string

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

15 years agodon't run the cleanup/shutdown code more than once per process
erickson [Tue, 8 Jul 2008 22:16:02 +0000 (22:16 +0000)]
don't run the cleanup/shutdown code more than once per process

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

15 years agofixed broken call to sizeof(). replaced ap_rvputs with more appropriate ap_rprintf...
erickson [Tue, 8 Jul 2008 16:16:20 +0000 (16:16 +0000)]
fixed broken call to sizeof(). replaced ap_rvputs with more appropriate ap_rprintf.  removed some unnecessary string freeing calls

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

15 years agoinitial C version of the opensrf http translator. not complete. I have not plugged...
erickson [Mon, 7 Jul 2008 15:40:05 +0000 (15:40 +0000)]
initial C version of the opensrf http translator.  not complete.  I have not plugged it into the build env.

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

15 years agoopensrf.settings is stateless; having the wrong setting here causes great agony
dbs [Tue, 1 Jul 2008 13:33:26 +0000 (13:33 +0000)]
opensrf.settings is stateless; having the wrong setting here causes great agony

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

15 years agoEnable libtool to work its magic and install versioned libraries
dbs [Tue, 1 Jul 2008 13:08:37 +0000 (13:08 +0000)]
Enable libtool to work its magic and install versioned libraries

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

15 years agoSet default for TMP to /tmp (autotools creates its own subdirectory)
dbs [Tue, 1 Jul 2008 13:06:37 +0000 (13:06 +0000)]
Set default for TMP to /tmp (autotools creates its own subdirectory)
  * Ideally this would check for a user's TMPDIR env variable and use that instead

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

15 years agoLinking:
dbs [Tue, 1 Jul 2008 03:33:23 +0000 (03:33 +0000)]
Linking:
  * automake automatically figures out many linking directories;
    remove explicit linking options for . / .libs
TMP files:
  * automake automatically creates a unique directory within TMPDIR;
    remove intermediate /opensrf/ directory (which causes problems for make clean)

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

15 years agoA little more autotools love:
dbs [Tue, 1 Jul 2008 02:03:46 +0000 (02:03 +0000)]
A little more autotools love:
  * Avoid the use of tmp dir by using noinst_ prefix for timejson
  * Remove DEF_LDLIBS usage (it enabled compiling, but did not link to the
    libraries) and replace with specific LDADD and LIBADD options

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

15 years agoLink osrf_json_gateway to objson and opensrf libraries the autotools way
dbs [Tue, 1 Jul 2008 01:15:09 +0000 (01:15 +0000)]
Link osrf_json_gateway to objson and opensrf libraries the autotools way

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

15 years agoautogen.sh needs to be executable
dbs [Mon, 30 Jun 2008 20:11:05 +0000 (20:11 +0000)]
autogen.sh needs to be executable

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

15 years agoSwitch to 'localhost' and standard port for memcached
dbs [Mon, 30 Jun 2008 19:53:13 +0000 (19:53 +0000)]
Switch to 'localhost' and standard port for memcached
Fix trivial typo in PID name

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

15 years agoChange values of default directories in config file in installed files rather than...
dbs [Mon, 30 Jun 2008 19:48:16 +0000 (19:48 +0000)]
Change values of default directories in config file in installed files rather than in tree

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

15 years agoPatch from Kevin Beswick (kbeswick00@gmail.com) to address various problems with...
dbs [Mon, 30 Jun 2008 19:46:08 +0000 (19:46 +0000)]
Patch from Kevin Beswick (kbeswick00@gmail.com) to address various problems with the autotools:
  * src/libopensrf/Makefile.am:
    * Fix typo for -I (includes) vs. -L (linking libraries) compile option
  * src/Makefile.am:
    * Propagate NDEBUG compile flag to all other makefiles
    * Create target directories
    * Set directories in example config files to match configured options
  * configure.ac:
    * Set default prefix to /opensrf/ instead of /openils/
  * bin/osrf_config.in:
    * Add --localstatedir option for osrf_config
    * Correct output value for --apxs
  * bin/osrf_ctl.sh
    * Set default PID dir to localstatedir rather than sysconfdir
  * Makefile.am:
    * Propagate NDEBUG compile flag to all other makefiles
    * Remove explicit rpath option, automake will figure that out for us (supposedly)
  * examples/opensrf_core.xml.example, examples/opensrf.xml.example, examples/srfsh.xml.example:
    * Set directories in example config files to match configured options

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

15 years agoPatch from Kevin Beswick to use autotools for OpenSRF configuration and build
dbs [Wed, 25 Jun 2008 18:50:00 +0000 (18:50 +0000)]
Patch from Kevin Beswick to use autotools for OpenSRF configuration and build

Included is a patch for a working implementation of the GNU Autotools
to OpenSRF. Some of the perks of this system are: the user is given
the ability to install OpenSRF to non-standard locations,
dependency/library checking, gives a user the ability to only install
certain components, more portable to other operating systems, etc.

To test, simply run:
autogen.sh
configure
make
make install

Options for configure can be found using:
./configure --help

Also, the patch contains a new file, osrf_config, which is generated
by running the configure script. Running this file will print all
build options a user has chosen when compiling/installing Opensrf.
Command line arguments can be added to return each single build option
as well. This is useful to developers in that they are able to locate
a certain installation directory on a non-standard installation of
OpenSRF. To see the available command line options, run: osrf_config --help

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

15 years agoadded some cleanup code on child exit to ensure friendly shutdown of sockets
erickson [Tue, 24 Jun 2008 20:47:49 +0000 (20:47 +0000)]
added some cleanup code on child exit to ensure friendly shutdown of sockets

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

15 years agochanging default router log level to "warn" since you only use the router log for...
erickson [Thu, 19 Jun 2008 21:04:17 +0000 (21:04 +0000)]
changing default router log level to "warn" since you only use the router log for serious debugging.. as is, just filling up space

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

15 years agoadded activity logging ability. activity logging any REQUEST messages that come...
erickson [Fri, 13 Jun 2008 16:24:29 +0000 (16:24 +0000)]
added activity logging ability.  activity logging any REQUEST messages that come through the translator

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

15 years agoadd a copy of the DCO for convenience
miker [Sun, 25 May 2008 12:58:30 +0000 (12:58 +0000)]
add a copy of the DCO for convenience

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

15 years agodefaulting to config.opensrf for config context. added some initial settings server...
erickson [Fri, 23 May 2008 15:43:48 +0000 (15:43 +0000)]
defaulting to config.opensrf for config context.  added some initial settings server loading

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

15 years agoadded some hopefully useful comments
erickson [Fri, 23 May 2008 15:18:05 +0000 (15:18 +0000)]
added some hopefully useful comments

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

15 years agodefault to help when invalid option is provided
erickson [Fri, 23 May 2008 14:59:52 +0000 (14:59 +0000)]
default to help when invalid option is provided

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

15 years agomoved stop/start actions out to functions
erickson [Fri, 23 May 2008 14:49:25 +0000 (14:49 +0000)]
moved stop/start actions out to functions

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

15 years agoremoving chatty debug log line
erickson [Fri, 23 May 2008 02:04:10 +0000 (02:04 +0000)]
removing chatty debug log line

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

15 years agothe latest cleanup broke GET requests by essentially ignoring them. fixed
erickson [Thu, 22 May 2008 19:58:56 +0000 (19:58 +0000)]
the latest cleanup broke GET requests by essentially ignoring them.  fixed

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

15 years agoupdated some docs
erickson [Tue, 20 May 2008 19:47:49 +0000 (19:47 +0000)]
updated some docs

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

15 years agoadded millisecond to the time output
erickson [Tue, 20 May 2008 19:46:16 +0000 (19:46 +0000)]
added millisecond to the time output

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

15 years agoadded echo system method
erickson [Tue, 20 May 2008 19:45:44 +0000 (19:45 +0000)]
added echo system method

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

15 years agodefaulting to string for info message
erickson [Tue, 20 May 2008 19:45:10 +0000 (19:45 +0000)]
defaulting to string for info message

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

15 years agonow disconnecting and clearing network handles where appropriate, but not always...
erickson [Tue, 20 May 2008 19:44:26 +0000 (19:44 +0000)]
now disconnecting and clearing network handles where appropriate, but not always both

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

15 years agoadded new disconnected exception. added some error condition logging. no longer...
erickson [Tue, 20 May 2008 19:43:13 +0000 (19:43 +0000)]
added new disconnected exception.  added some error condition logging.  no longer disconnecting on network handle clear, because parent process may be using the handle.

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

15 years agomild doc update, some changes from testing
erickson [Tue, 20 May 2008 19:41:55 +0000 (19:41 +0000)]
mild doc update, some changes from testing

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

15 years agotesting svn email..
erickson [Mon, 19 May 2008 12:36:45 +0000 (12:36 +0000)]
testing svn email..

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

15 years agoNo longer globally setting the network recv_callback handler to None
erickson [Sun, 18 May 2008 23:42:17 +0000 (23:42 +0000)]
No longer globally setting the network recv_callback handler to None
because it clobbers the callbacks of other python clients running
in the same within the same process.  Now we capture the existing
callback and replace it after the request has been processed

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

15 years agoadded date/time info when logging to a local file
erickson [Sun, 18 May 2008 22:17:59 +0000 (22:17 +0000)]
added date/time info when logging to a local file

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

15 years agoPatch from Scott McKellar:
erickson [Sun, 18 May 2008 13:27:36 +0000 (13:27 +0000)]
Patch from Scott McKellar:

These patches eliminate two deprecated identifiers in favor of their
camel case equivalents:

osrf_app_client_session_init
osrf_app_session

All other instances of these identifiers have already been eliminated
from the code base.

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

15 years agoPatch from Scott McKellar:
erickson [Fri, 16 May 2008 13:17:17 +0000 (13:17 +0000)]
Patch from Scott McKellar:

This patch replaces some deprecated identifiers with their camelCase
equivalents.

osrf_app_session  ==> osrfAppSession
osrf_message      ==> osrfMessage
osrf_message_free ==> osrfMessageFree

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

15 years agoexiting early when hash iterator returns null
erickson [Fri, 16 May 2008 12:59:23 +0000 (12:59 +0000)]
exiting early when hash iterator returns null

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

15 years agoPatch from Scott McKellar:
erickson [Fri, 16 May 2008 12:45:11 +0000 (12:45 +0000)]
Patch from Scott McKellar:

These patches provide a new and more efficient implementation of
osrfHash, using a hash table for random lookups and a doubly linked
list for iterations.

It is more efficient for two main reasons.  First, for iterations
it doesn't maintain a separate copy of the keys, that then have to go
through the hashing algorithm.  Second, when updating an existing
item, it updates it in place rather than deleting it and creating
a new one.

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

15 years agoPatch from Scott McKellar:
erickson [Thu, 15 May 2008 20:55:02 +0000 (20:55 +0000)]
Patch from Scott McKellar:

This patch tweaks a few things.

1. In json_parse_json_string() we declare a character array buff[],
fill it with nuls, and never refer to it again.  I eliminated it.

2. A few lines below that, we use memset() to clear a three-character
buffer.  I replaced the memset() with an initializer clause.

3. in json_handle_error() we were relying on the osrf_clearbuf macro
to add a terminal nul.  However the plan is for this macro to become
a no-op someday.  I added the nul manually.

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

15 years agoPatch from Scott McKellar:
erickson [Thu, 15 May 2008 20:46:15 +0000 (20:46 +0000)]
Patch from Scott McKellar:

This patch tweaks the jid_get_* functions, which copy various
fragments of an jabber id into a buffer supplied by the caller.

If these functions don't find the fragments they're looking for, they
now return an empty string in the buffer.  Earlier they would leave
the buffer unchanged, leaving it to the calling code to initialize
the buffer.

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

15 years agoPatch from Scott McKellar:
erickson [Thu, 15 May 2008 13:36:32 +0000 (13:36 +0000)]
Patch from Scott McKellar:

This patch is mostly a performance tweak, but also tidies up a few
things.

In apacheParseParms() we load POST data and GET data into the same
buffer, with the GET data coming first.  However the old code loads
the POST data first.  If there is also some GET data, we juggle some
buffers in order to get the GET and POST data into the right order.

The new code loads the GET data first, and then appends the POST
data onto it.  Besides being simpler, the new code avoids a layer
of copying, as well as and two round trips through malloc() and
free().

Other details:

1. I rearranged the declarations of the variables sarray, buffer,
key, and val, so as to narrow their scope.  In the case of sarray
this rearrangement avoids a potential memory leak in the case of an
error exit (where the POST data is excessive).

2. I append a terminal null to the input buffer instead of using
memset() to fill the entire buffer.

3. Since the bread variable is a long rather than an int, I corrected
the format specifier accordingly in one of the debug messages.

4. I eliminated some redundant casts in a couple of calls to
ap_unescape(), since the variables so cast are already the right
types.

5. The final debug message was being issued only when sarray was
not NULL.  However at this spot sarray cannot be NULL anyway, so I
eliminated the test of sarray.

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

15 years agoset the logging transaction ID earlier in the process
erickson [Wed, 7 May 2008 17:26:26 +0000 (17:26 +0000)]
set the logging transaction ID earlier in the process

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

15 years agodisable use of cjson for now because oddities have been seen in mod_python (potential...
erickson [Wed, 7 May 2008 17:26:08 +0000 (17:26 +0000)]
disable use of cjson for now because oddities have been seen in mod_python (potentially beyond).

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

15 years agochecking socket connect state before sending final packet and calling shutdown (to...
erickson [Wed, 7 May 2008 14:40:50 +0000 (14:40 +0000)]
checking socket connect state before sending final packet and calling shutdown (to prevent warnings)

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

16 years agoremoving redundant file. covered by DojoSRF.js
miker [Wed, 23 Apr 2008 00:17:25 +0000 (00:17 +0000)]
removing redundant file. covered by DojoSRF.js

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

16 years agoimporting json and md5 code
erickson [Mon, 21 Apr 2008 17:13:59 +0000 (17:13 +0000)]
importing json and md5 code

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

16 years agoAt long last, removing old objson sources. This will not affect the legacy
erickson [Mon, 21 Apr 2008 01:03:09 +0000 (01:03 +0000)]
At long last, removing old objson sources.  This will not affect the legacy
libobjson.so support, since that's all handled by libopensrf/osrf_legacy_json.c

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