Commit Graph

107 Commits

Author SHA1 Message Date
Anthony Minessale c469e7ada2 cleanup ESL a little 2013-11-14 00:43:25 +05:00
Anthony Minessale 931d3fb86a remove condition for mem leak 2013-11-12 12:33:32 -06:00
Nathan Neulinger 32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Travis Cross 3217442d0e Remove assignment without effect 2013-05-28 03:46:53 +00:00
Travis Cross 8c37db140e Handle a failure of strerror_r
This fixes the build on gcc-4.7.3.  The build was breaking with:

  error: ignoring return value of 'strerror_r', declared with attribute warn_unused_result [-Werror=unused-result]
2013-05-25 19:05:34 +00:00
Travis Cross 6d5018007b Add missing text editor local variable blocks 2013-05-25 19:05:34 +00:00
Stefan Knoblich cb9090dc93 esl: Don't abort the esl_listen() loop(s) if accept() returns with errno == EINTR
ivrd doesn't use sigaction + SA_RESTART for SIGCHILD. An exiting
child process will interrupt accept() in the parent to handle
the signal, which makes accept() return -1 (errno = EINTR) after
the sighandler function returns.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-05-23 02:07:55 +02:00
Jeff Lenk dc2c11f13f FS-4768 initial add of vs2012 build support 2012-12-29 14:57:15 -06:00
Jeff Lenk c7e8dce247 FS-4828 --resolve 2012-11-17 21:38:07 -06:00
Ken Rice 3c249b012e FS-4003 --resolve add IPv6 support to ESL client library, thanks to Steven Ayre 2012-11-01 22:39:16 +00:00
Anthony Minessale 7d38669801 fix wrong len in ESL sendMSG method 2012-08-28 12:04:50 -05:00
Anthony Minessale 163fffb3e8 fix issue with threaded ivrd, forking is back by default but threaded can be chosen with -t; in both modes the fd number is not passed as the first arg to the program but in threaded mode the stdin will no longer be mapped to the socket you will have to get the first command line arg instead of fileno stdin 2012-05-03 13:13:48 -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
Anthony Minessale a40f304990 ESL-45 --resolve 2012-04-10 16:11:36 -05:00
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