Richard Fuchs
08d40d8ac5
add debian buildflags and address generated warnings
14 years ago
Richard Fuchs
59e47df1d6
remove obsolete makefile target and add missed \n to simulator script
14 years ago
Richard Fuchs
3d81378bfa
adding reinvite capability to call simulator
14 years ago
Richard Fuchs
d751d10093
check struct sizes and offsets exported by redis plugin
14 years ago
Richard Fuchs
594297a3ea
use string chunk for all the little call-related strings
14 years ago
Richard Fuchs
afb1f5de95
need to lock the call a bit earlier
14 years ago
Richard Fuchs
8675421c0b
add option for redis testing
14 years ago
Richard Fuchs
d8ef1885cc
split callstream_init into callstream_new for redis module
14 years ago
Richard Fuchs
2e189c5eb5
echo core >> .gitignore
14 years ago
Richard Fuchs
2d9eabbc44
fix warning for broken calls
14 years ago
Richard Fuchs
c291d1220b
fix logging inconsistency
14 years ago
Richard Fuchs
9077fac612
be a lazy developer and try to load the .so locally
14 years ago
Richard Fuchs
26d5e2da84
catch erroneous no-op makefile
14 years ago
Richard Fuchs
a9823f2323
adding .gitignore files
14 years ago
Richard Fuchs
fcf4f02a26
adding ipv6 support to test script
14 years ago
Richard Fuchs
d12ced0e01
advancing the call simulator test script
14 years ago
Richard Fuchs
da02558511
its always nice to call openlog()
14 years ago
Richard Fuchs
72840c8d1d
reorder calls to redis for proper locking
14 years ago
Richard Fuchs
7e38c7a96f
a more robust thread shutdown procedure
14 years ago
Richard Fuchs
d20d747a63
since xmlrpc is still segfaulting even in its own process, disable core dumps in the child and retry the xmlrpc call up to 3 times if the child terminates abnormally. jumping through hoops ftw!
14 years ago
Richard Fuchs
2ad1d6f65e
xmlrpc still segfaulting. leaves no choice but to fork out a new process, ugh.
14 years ago
Richard Fuchs
f4833f6b74
xmlrpc calls still causing segfaults, lets try with a dedicated client object per call... i'm starting to dislike this library
14 years ago
Richard Fuchs
a4625fbad9
enough with the glib threading nonsense, it's only causing problems. revert to good old pthread stuff
14 years ago
Richard Fuchs
fabcb53a3b
the curl xmlrpc transport isnt playing nicely - revert to default
14 years ago
Richard Fuchs
08c764c748
cant decref null references
14 years ago
Michael Prokop
10cfabf977
wrap and sort items in Debian packaging files
This makes reviews and diffs easier and helps in avoiding duplicate entries.
devscripts's wrap-and-sort ftw.
Closes: https://bugtracker.sipwise.com/view.php?id=1845
From: Michael Prokop <mprokop@sipwise.com>
14 years ago
Richard Fuchs
4b7d4d24cd
dont block fatal core-dumping signals
14 years ago
Richard Fuchs
36fe21f9ec
make the simulator delete all calls at the end
14 years ago
Richard Fuchs
63b034e623
udp can be unreliable even over localhost
14 years ago
Richard Fuchs
d8771320d7
new call simulator script for testing against udp protocol
14 years ago
Richard Fuchs
8af139ad10
the status command gets really slow under valgrind, so put it into background
14 years ago
Richard Fuchs
0f6d898171
add proper locking to callstream setup procedure
14 years ago
Richard Fuchs
94f2f320a6
actually the call struct needs neither linked flag nor shutdown flag due to the sequence of events and locking
14 years ago
Richard Fuchs
d8776907f8
need to lock the callstream a bit earlier
14 years ago
Richard Fuchs
ab3b8c60f0
fix a silly, threading-unrelated, statistics-skewing bug
14 years ago
Richard Fuchs
45f34b9784
turns out you actually have to free/destroy mutexes. who woulda thunk?
14 years ago
Richard Fuchs
54353022ff
om nom nom memory leak... well, reference count leak
14 years ago
Richard Fuchs
b7a68659b1
analoguous to the last race, call_destroy() must not assume that it's getting the last reference to the call
14 years ago
Richard Fuchs
683b716885
here we go with the subtle race conditions
14 years ago
Richard Fuchs
806920cc52
dont abort polling on EINTR
14 years ago
Richard Fuchs
0d6349f14c
and for the interesting part: multiple poller threads
14 years ago
Richard Fuchs
942c96c96d
move poller timers and polling into a separate thread
14 years ago
Richard Fuchs
d25d1c2009
making main() pretty by moving stuff out of the way
14 years ago
Richard Fuchs
ddffe5eeec
global xmlrpc init must be done prior to any threading
14 years ago
Richard Fuchs
d1fbf9bef9
alarms arent usable in a threaded environment, so use curl internal timeout instead
14 years ago
Richard Fuchs
feeeee2fab
must extract needed tags for xmlrpc call teardown prior to destroying the calls
14 years ago
Richard Fuchs
973d92d9c7
moving call teardown due to timeout to a separate thread
14 years ago
Richard Fuchs
47a9a00a11
it makes no sense to return a value from an effectively detached thread
14 years ago
Richard Fuchs
31a5ff9c29
detached threads considered harmful, so simulate them by keeping a threads-to-join list
14 years ago
Richard Fuchs
bc647862e5
use sigtimedwait for proper sighandler thread shutdown
14 years ago