Richard Fuchs
badae5a874
lets get some threads going then, starting with a signal handler
14 years ago
Richard Fuchs
2dd6cfe68c
keeping the lock hold time to a minimum in lengthy calls_status operation
14 years ago
Richard Fuchs
8c2c69f5e6
make the stats collection thread-safe
14 years ago
Richard Fuchs
d9e09f33bc
lets try with a lot of large, nested, naive locks
14 years ago
Richard Fuchs
ae5a36f5ce
getting rid of call->log_info and introducing call->lock
14 years ago
Richard Fuchs
900f76a17e
make the callmaster struct private - also requires update to redis module
14 years ago
Richard Fuchs
aeb5398b0d
granular lock for "ports used" bit field
14 years ago
Richard Fuchs
a8680cc2d9
TOS for ipv6 needs an int to work
14 years ago
Richard Fuchs
0b0b41e67f
gonna need more than one lock in callmaster, so rename the one we have
14 years ago
Richard Fuchs
4cb63b5edf
need to handle the no-reply case to avoid deadlocks with bad cookies
14 years ago
Richard Fuchs
4588e13a76
getting rid of more global variables
14 years ago
Richard Fuchs
e033d1da1c
EINTR requires special handling
14 years ago
Richard Fuchs
1ec2c96655
living on the edge with epoll edge-triggered behavior
14 years ago
Richard Fuchs
db15692f21
using thread-local-storage for eliminating constant calls to time()
14 years ago
Richard Fuchs
45945f6c7f
it helps to actually initialize the condition var
14 years ago
Richard Fuchs
26824993e2
preliminary attempt to make the udp controller thread-safe
14 years ago
Richard Fuchs
5f5e158d76
private structs make for safer threading
14 years ago
Richard Fuchs
ebd2893e96
missing a streambuf lock here
14 years ago
Richard Fuchs
419f6bb230
and the tcp controller becomes thread-safe
14 years ago
Richard Fuchs
6e474ccfc0
add appropriate threading compile flags
14 years ago
Richard Fuchs
c75aecc282
make use of "make debug" target
14 years ago
Richard Fuchs
7dc00bd258
making timers thread-safe
14 years ago
Richard Fuchs
4b74e6f476
use obj_* to catch double-free errors
14 years ago
Richard Fuchs
b3ef1995fc
add mutex_trylock primitives
14 years ago
Richard Fuchs
de33b8da40
add basic locking to callmaster struct
14 years ago
Richard Fuchs
9dab795a17
disable object debugging, seems to work fine
14 years ago
Richard Fuchs
8dcd2c89c4
add rwlock type and primitives
14 years ago
Richard Fuchs
26f29aefeb
object size isnt really a useful piece of information
14 years ago
Richard Fuchs
8e5ad59558
make the obj_ primitives more liberal to make for easier calling
14 years ago
Richard Fuchs
f05156a58e
catch the inevitable disaster early and define our own mutex types. sigh. and there i was, thinking that using the glib types would make things easier.
14 years ago
Richard Fuchs
806c97246c
glib < 2.32 requires use of distinct static mutex type
14 years ago
Richard Fuchs
145bbd1f7c
Prepare for multi-threaded operation
Introduce generic "objects" with reference counting primitives and automatic
resource deallocation when no refs are left ("garbage collection"). Overhaul
poller framework to make extensive use of these objects to allow for future
thread-concurrent operation.
No locking added anywhere yet except in poller. Poller is still not 100%
thread safe, but close.
Valgrind reports no errors or memleaks.
14 years ago
Richard Fuchs
5d1410c61a
remove obsolete targets from makefile
14 years ago
Richard Fuchs
effc21b26c
mybsearch function is also obsolete
14 years ago
Richard Fuchs
2594da3b45
dont poll kernel list when table couldnt be opened
14 years ago
Richard Fuchs
9bff0cf86c
lets be more strict with timer removal
14 years ago
Richard Fuchs
1fa2f614d4
it's inefficient to walk the entire list of poller items every second just to look for times which we don't really use. so instead, use the linked timers list for this purpose. this is also inefficient for timer remove, but since we don't use those times anyway, we don't care.
14 years ago
Richard Fuchs
fa6039e71d
BSEARCH macro is obsoleted
14 years ago
Richard Fuchs
52e297f864
use glib slice allocator in poller
14 years ago
Richard Fuchs
8d50923508
good bye poll(), hello epoll_*()
14 years ago
Richard Fuchs
b7c8ddf1a0
update .so name to match .deb
14 years ago
Michael Prokop
4c95623589
Build package ngcp-mediaproxy-ng-dbg providing debugging symbols
Split out the debugging symbols from the main packages into
one single package named ngcp-mediaproxy-ng-dbg
Closes: https://bugtracker.sipwise.com/view.php?id=1825
From: Michael Prokop <mprokop@sipwise.com>
14 years ago
Richard Fuchs
2a8c07df0e
take rtcp ports into account when checking for timeouts
14 years ago
Jon Bonilla
6b48cb0d49
Remove init and default scripts
The default file is provided by templates. We
won't have questions regarding changed config
files on upgrades.
The init script will be provided via lsb-scripts.
14 years ago
Richard Fuchs
70ac6a274c
take 0-byte packets into consideration when updating peer info for NAT'd streams
14 years ago
Michael Prokop
229af9a7f3
Bump Standards-Version to 3.9.3
From: Michael Prokop <mprokop@sipwise.com>
14 years ago
Michael Prokop
7a32517304
Bump Standards-Version to 3.9.3
From: Michael Prokop <mprokop@sipwise.com>
14 years ago
Michael Prokop
6d004a97cc
Set maintainer field to new default
From: Michael Prokop <mprokop@sipwise.com>
14 years ago
Richard Fuchs
24cf5a0ca0
dump packet stats upon call teardown
14 years ago
Richard Fuchs
b6650a9d78
increase max udp packet len to 8192 and add warning message if the limit is hit
14 years ago