154 Commits

Author SHA1 Message Date
dschreiber
1e696d2c93 FS-3577 : After Tamas's fixes and new logging so we can see the erl_errors, re-applying this 10ms polling interval patch that Tony committed a few months ago. Please report any issues. 2012-06-19 09:13:29 -07:00
dschreiber
7e6018985c Merge remote branch 'origin/master' into FS-3432 2012-06-19 08:10:54 -07:00
Tamas Cseke
794f8cfb8b reply state seems to be unnecessary FS-3432 2012-06-12 11:37:35 +02:00
Tamas Cseke
44fb1d00d7 fix session hash rwlock vs reply mutex order FS-3432 2012-06-12 11:34:20 +02:00
dschreiber
3858e625a4 The fix for FS-3577 causes instabilities if multiple listeners are connected it seems. Undoing this change for now until I can figure out the root cause. 2012-06-11 21:59:47 -07:00
Tamas Cseke
3f6b5a5c01 fix reply timeout: move hash and pid to session pool FS-3432 2012-06-11 17:25:28 +02:00
Tamas Cseke
d2e9e46eb6 move session destroy to one place and hangup in others to eliminate races and minimize session hash wrlocks FS-3432 2012-06-11 15:03:58 +02:00
Tamas Cseke
83f230cce6 fix possible memory leak FS-3432 2012-06-11 15:00:32 +02:00
Tamas Cseke
ae4d3acbb3 cleanup FS-3432 2012-06-08 17:24:23 +02:00
Tamas Cseke
19db96d2ba channel private is already removed we don't need to remove the state handler FS-3432 2012-06-08 17:23:07 +02:00
Tamas Cseke
9dc9ee974c doh FS-3423 2012-05-24 16:19:01 +02:00
Tamas Cseke
377f6a9ef6 remove channel private, state handler and clear controlled flag on destroy FS-3432 2012-05-24 16:12:55 +02:00
Tamas Cseke
2be25c6a56 remove removal while traversing the hash and and lock to elimate race FS-3432 2012-05-24 15:14:14 +02:00
Tamas Cseke
78641d4264 cleanup process spawning, remove mutex lock and add session to listener only if reply state and session flag is set to waiting FS-3432 2012-05-24 14:55:29 +02:00
Tamas Cseke
85656c31af add session event r/w locking FS-3432 2012-05-24 11:44:12 +02:00
Tamas Cseke
87f65f1784 add session r/w locking FS-3432 2012-05-24 11:32:15 +02:00
Tamas Cseke
fdd3a8d333 set and clear session flags locked FS-3432 2012-05-24 11:16:26 +02:00
Tamas Cseke
4e6b56c53d add listener event r/w locking FS-3432 2012-05-24 10:57:28 +02:00
Tamas Cseke
eade657225 listener r/w locking FS-3432 2012-05-24 10:30:48 +02:00
Tamas Cseke
8f4c5bc492 add Andrew's patch from FS-3432 as a starting point with todo markers 2012-05-24 09:37:41 +02:00
Anthony Minessale
ce186707ff FS-3577 --resolve 2012-05-07 11:44:19 -05:00
Anthony Minessale
ca7a1acb1d FS-3809 --resolve 2012-05-07 11:43:39 -05:00
Anthony Minessale
bafba4a991 FS-4142 --resolve 2012-05-07 11:42:58 -05:00
Ken Rice
7a147e4762 Update a ton of copyright statements to make sure the dates are proper 2012-04-25 17:14:55 -05:00
Ken Rice
c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
Ken Rice
cac6c262bb conf: add config files to module directories
The idea here is that the config files in the module directories will
serve as the canonical documentation of all module configuration
options.
2012-03-24 04:51:08 +00:00
dschreiber
3b8ab39f45 Undo change for erlang event listeners - should be 100 not 50 2011-11-11 12:53:25 -05:00
Darren Schreiber
994f9a8ca6 Fixed a memory leak, too short of connect times across data centers, a deadlock condition with the globals.bindings_rwlock not being released, a buffer overrun possibility or 4, and added the ability to send a body when injecting an event 2011-09-30 21:58:06 -04:00
Andrew Thompson
af3be7b21d Silence a silly warning about ignored return values 2011-08-24 14:44:12 -04:00
Andrew Thompson
7b656871f3 Fix unused var 2011-08-20 23:03:17 -04:00
Andrew Thompson
618ea0f2c8 FS-3488 --resolve 2011-08-20 19:45:36 -04:00
Andrew Thompson
8ae9ab5d15 FS-3034 2011-05-11 13:55:22 -04:00
Andrew Thompson
9fe440b2fe mod_erlang_event Add proper locking for the list of XML bindings 2011-01-21 21:53:03 -05:00
Andrew Thompson
4eccdfef58 mod_erlang_event: Don't urlencode events (and destroy an event after use) 2011-01-21 21:47:46 -05:00
Brian West
3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Andrew Thompson
6941c6eb71 FS-2775 Rewrite XML fetch conditional wait to be more sane (Reported by James Aimonetti) 2010-11-15 12:39:54 -05:00
Andrew Thompson
1ffff099c1 Avoid checking the lengh of a null string. 2010-10-18 03:18:35 -04:00
Andrew Thompson
dc40a7789c Arrays are 0 indexed in C, duh 2010-10-17 16:19:38 -04:00
Andrew Thompson
094ffe37cc mod_erlang_event: Support for reading erlang cookie from a file
mod_erlang_event will now try to read $HOME/.erlang.cookie if no cookie
is specified in the config file. You can specify an arbitary cookie file
via the 'cookie-file' parameter in the config file. The cookie file MUST
be readable by the user freeswitch is running as (either the owner or
root) and the file MUST NOT be readable/writeable/executable by any
other user (eg 0400 permissions). Thanks to James Aimonetti for the idea
and the original patch.
2010-10-15 23:40:57 -04:00
Andrew Thompson
08d6b4339c Fix hostname guessing to work when some stupid DNS server resolves 0.0.0.0
Also, fix names containing a @ to work right
2010-08-29 10:59:10 -04:00
Andrew Thompson
2e8ece4fba Patch (with changes) from Micah Warren to add 'setevent' which is a mostly-atomic nixevent ALL + a event subscription 2010-08-27 21:16:55 -04:00
Andrew Thompson
79ced283b3 Some more tweaks 2010-08-22 20:58:52 -04:00
Andrew Thompson
3798c39177 Remove some code we don't use 2010-08-22 20:58:48 -04:00
Andrew Thompson
6fc68a4aa9 Use a different mutex for tracking threadcount 2010-08-22 20:58:47 -04:00
Andrew Thompson
121e57a1db Switch from mutex to a rwlock to increase throughput 2010-08-22 20:58:44 -04:00
Andrew Thompson
5ef61c961f Null out the spawn reply after we're done with it to avoid seg 2010-08-22 20:58:41 -04:00
Andrew Thompson
c0d51b83f4 Improve some logging to include UUIDs 2010-08-22 20:58:38 -04:00
Andrew Thompson
9ad509c29a mod_erlang_event: generate long node names the same as erlang does
Also, allow you to override the node name inference by passing a
nodename with an @ in it, eg. freeswitch@freeswitch.com
2010-08-17 02:32:37 -04:00
Andrew Thompson
6397f898fd Switch from a busy-wait loop to crazy conditional timedwait stuff for speed 2010-08-06 01:32:28 -04:00
Andrew Thompson
b60d6b3376 Remove deprecated new_pid API (its been there long enough) 2010-08-05 16:07:14 -04:00