Commit Graph

93 Commits

Author SHA1 Message Date
Anthony Minessale c41a16d4da shutdown socket before closing to avoid blocking 2012-04-05 14:28:01 -05:00
Jeff Lenk da36d1f57f FS-3953 --resolve 2012-02-28 08:38:45 -06:00
Anthony Minessale 23645b6af2 comment assert for windows 2012-02-27 16:49:12 -06:00
Stefan Knoblich cc083ccddb [libesl] Make sure esl event buffer array subscript ist within bounds [0, sizeof(buffer)-1].
cc1: warnings being treated as errors
  libs/esl/src/esl.c: In function "esl_recv_event":
  libs/esl/src/esl.c:1190: error: array subscript is above array bounds
  libs/esl/src/esl.c:1227: error: array subscript is above array bounds

Clamp handle_recv() return value to safe values.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2011-12-19 20:39:51 +01:00
Marc Olivier Chouinard 442f4d2522 FS-3766 --resolve 2011-12-16 07:35:05 -05:00
Marc Olivier Chouinard 58ccbe567c ESL-58 --resolve
Please Windows user test this one out.
2011-12-15 23:02:10 -05:00
Anthony Minessale d05dcaaade ok, windows... you missed the real err but you are still crying about this other one =/ 2011-12-14 14:47:51 -06:00
Anthony Minessale 70a4ebd3fb sorry windows... 2011-12-14 14:38:00 -06:00
Anthony Minessale f7f9a43a40 use threading in testserver and ivrd 2011-12-14 12:16:09 -06:00
Jeff Lenk 482b319512 FS-3544 --resolve 2011-09-06 21:27:13 -05:00
Anthony Minessale 1c775c3bf0 finish up last commit 2011-09-06 15:07:51 -05:00
Anthony Minessale 2ae688a33b add sendmsg function to esl 2011-09-06 14:53:38 -05:00
Anthony Minessale c080fb15d9 update on array patch 2011-05-26 10:00:06 -05:00
Mathieu Rene ea38df0aed missed one 2011-05-26 10:52:41 -04:00
Jeff Lenk 55c24567bd fix windows code analysis problems 2011-05-25 23:51:48 -05:00
Anthony Minessale c1c759526d add arrays to event headers and chanvars 2011-05-25 15:42:36 -05:00
Anthony Minessale 73279f01bf FS-3166 --resolve 2011-04-22 16:43:29 -05:00
Jeff Lenk 0cde6bc039 code analysis warnings fix and acknowledge stack usage warning 2011-03-27 12:09:10 -05:00
Anthony Minessale 9795dd2f0a fix finicky build 2011-03-26 11:07:34 -05:00
Anthony Minessale ae595cd529 use poll instead of select in ESL client lib because select is not your friend.... 2011-03-26 10:59:55 -05:00
Anthony Minessale e8474d602d ESL-57 2011-03-10 00:33:43 -06:00
Anthony Minessale 0444626b72 fix linger support in esl client lib 2011-02-25 16:13:24 -06:00
Anthony Minessale e8a1055854 ESL-56 null terminate buffer after reading from the socket to prevent cross-over to old data that confuses the parser and throws off framing. (regression from 2081bf97b9) 2011-02-22 17:07:18 -06:00
Joao Mesquita eb88304a16 Small fix on ESL that cause event_id to be set wrong on headers that had value failure. 2011-01-12 16:24:04 -03:00
Jeff Lenk 7b1de56baa vs2010 fix build 2010-12-16 14:24:54 -06:00
Anthony Minessale 2081bf97b9 use a packet buffer for ESL 2010-12-16 11:33:38 -06:00
Jeff Lenk a15f51d577 ESL-37 [patch] Make last_event pointer last longer 2010-12-09 09:22:17 -06:00
Brian West 413dcc4cd2 ESL-50: Call close on connection handle if the connection fails 2010-10-08 09:03:43 -05:00
Jeff Lenk 184f395553 fix several code analysis problems and mask several that are required 2010-09-20 09:25:14 -05:00
Mathieu Rene b38909af0e esl: init fd_flags to 0 2010-08-18 18:27:29 -04:00
Mathieu Rene 4263d60e38 esl: fix leak-on-error in esl_connect_timeout() 2010-08-12 12:00:12 -04:00
Mathieu Rene 46c2d71464 fix windows build 2010-07-20 17:19:30 -04:00
Mathieu Rene 90da341a70 fix git screwup 2010-07-20 17:18:43 -04:00
Jeff Lenk b079eee5fb fix windows build 2010-07-20 15:33:48 -05:00
Mathieu Rene 644a144e19 Add esl_connect_timeout to specify custom connection timeouts 2010-07-20 15:33:46 -05:00
Mathieu Rene 49d6c803d1 use uint32_t instead of long for timeout as in the rest of the lib, 0 means forever. Also added esl_send_recv_timed() 2010-07-20 16:24:50 -04:00
Mathieu Rene 13137e228c esl: use recv_timed in esl_connect_timemout in case we get stuck in a blocking recv 2010-07-20 16:24:50 -04:00
Mathieu Rene 12a0ec741b Add esl_connect_timeout to specify custom connection timeouts 2010-07-20 14:45:53 -04:00
Jeff Lenk 394d545468 doh 2010-07-19 15:27:25 -05:00
Jeff Lenk 6a9a61c79f fix windows build 2010-07-19 15:25:45 -05:00
Mathieu Rene 52885dfc1d esl: make esl_connect thread-safe by using getaddrinfo instead of gethostbyname 2010-07-19 16:13:10 -04:00
Anthony Minessale 7048c16fc4 jsonification into the core and ESL (part 2) 2010-06-17 11:49:16 -05:00
Anthony Minessale 9c9cb5b310 fix esl buffer overflow 2010-05-28 14:20:20 -05:00
Michael Jerris b2ec65a10a more efficient check 2010-04-26 01:13:10 -04:00
Anthony Minessale 5fb3a88f71 ESL-36 2010-04-13 13:35:38 -05:00
Anthony Minessale 1baa8d5eee fix esl sendevent issue and change the sendEvent method to return the reply text like sendRecv etc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16921 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-05 23:10:41 +00:00
Mathieu Rene 2c7cb1da6b ISO C90 forbids mixed declarations and code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16722 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-22 19:18:11 +00:00
Anthony Minessale 4197a25412 ESL-32
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16721 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-22 18:35:21 +00:00
Anthony Minessale a53236da7f add support for user level auth to esl and fs_cli
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16161 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-05 20:37:16 +00:00
Anthony Minessale 3cb315d6d4 add SOCKET_EVENT event
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16135 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-04 17:46:55 +00:00