1. 24 Apr, 2006 1 commit
    • Per Cederqvist's avatar
      Tell svn to ignore core files. · e37c8984
      Per Cederqvist authored
      * src/server/testsuite: Ignore core and vgcore.*.
      
      Replaced the "Client host" and "Client port" configuration file
      parameters with "Listen", and allow lyskomd to listen to more than
      one port.
      * doc/lyskomd.texi (Parameters): Replaced "Client host" and
      "Client port" with "Listen".
      * src/server/ramkomd.c (start_listen_sockets): New static
      function.  Listen to all the ports specified by the "Listen:"
      parameter.
      (server_init): Use start_listen_sockets() instead of calling
      isc_listentcp().  Removed the host and client_port arguments.  All
      callers updated.
      * src/server/testsuite/lyskomd.0/54.exp: New test suite.
      * src/server/conf-file.c (ctor_ipport_list): New static function.
      (dtor_ipport_list): New static function.
      (assign_ipport_list): New static function.
      (cf_ipport_list): New constant.
      * src/server/conf-file.h (struct ipport_entry): New struct.
      (struct ipport_list): New struct.
      (cf_ipport_list): New constant.
      * src/server/param.h (struct kom_par): Replaced "ip_client_host"
      and "ip_client_port" with "listen".
      * src/server/server-config.c (parameters): Ditto.
      * src/server/prot-a-parse-arg-c.awk: Include "conf-file.h" from
      the generated files.
      * src/server/admin.c: Include "conf-file.h".
      * src/server/aux-items.c: Ditto.
      * src/server/checkkomspace.c: Ditto.
      * src/server/conference.c: Ditto.
      * src/server/connections.c: Ditto.
      * src/server/dbck-cache.c: Ditto.
      * src/server/dbck.c: Ditto.
      * src/server/disk-end-of-atomic.c: Ditto.
      * src/server/komrunning.c: Ditto.
      * src/server/lockdb.c: Ditto.
      * src/server/membership.c: Ditto.
      * src/server/person.c: Ditto.
      * src/server/prot-a-output.c: Ditto.
      * src/server/prot-a-parse.c: Ditto.
      * src/server/prot-a.c: Ditto.
      * src/server/regex-match.c: Ditto.
      * src/server/rfc931.c: Ditto.
      * src/server/send-async.c: Ditto.
      * src/server/session.c: Ditto.
      * src/server/simple-cache.c: Ditto.
      * src/server/splitkomdb.c: Ditto.
      * src/server/text-garb.c: Ditto.
      * src/server/text.c: Ditto.
      * src/server/updateLysKOM.c: Ditto.
      * run-support/config: Removed the "Client port" setting.
      
      Adjust the test suite for the above change.
      * src/server/testsuite/lyskomd.0/bug-64.exp: Expect memory leaks
      due to bug 1599.
      * src/server/testsuite/lyskomd.0/53.exp: Expect a more informative
      error message when isc_listentcp fails.
      * src/server/testsuite/lyskomd.0/11.exp: Expect an IP address in
      the "Listening for clients" log message.
      * src/server/testsuite/config/unix.exp (clientport_2): New
      constant.
      (clientport_3): New constant.
      (lyskomd_start): New argument: listen_messages.  Use "Listen:"
      instead of "Client port:".
      (lyskomd_fail_start): Use "Listen:" instead of "Client port:".
      (client_start): New optional argument: port.
      e37c8984
  2. 09 Feb, 2006 1 commit
    • Per Cederqvist's avatar
      Added valgrind suppressions for optimised code. · 4c6723a9
      Per Cederqvist authored
      * src/server/testsuite/lyskomd.supp (aid_lexer_opt): New
      suppression.
      (aid_lexer_2_opt): Ditto.
      
      New test case: start lyskomd while the socket is bound.
      * src/server/testsuite/lyskomd.0/53.exp: New test case.  Test
      startup when the socket is already bound by another process.  This
      exposed a memory leak in libisc which is also fixed in this
      commit.
      * src/server/testsuite/tcpbind.py: New helper script.  Bind a tcp
      port, so that it is occupied.  Used by 53.exp.
      * src/server/testsuite/config/unix.exp (lyskomd_fail_start): New
      optional argument. expected_leaks.  Fix database setup.  Remove
      the server from expect_after and expect_always once it has failed.
      (utility_start): New function.
      (utility_death): New function.
      (talk_to): Handle talking to utilities.
      
      Use strerror() instead of logging a plain errno integer.
      * src/server/lockdb.c (lock_db): Use strerror() to get a
      human-readable error message.
      
      Fixed a memory leak.
      * src/libraries/libisc-new/src/isc_tcp.c (mkaddr_and_bind):
      New static function, extracted from isc_bindtcp().  Don't leak
      the isc_address if bind() fails.
      (isc_bindtcp): Moved some code to mkaddr_and_bind().
      4c6723a9
  3. 06 Aug, 2003 1 commit
  4. 04 Aug, 2003 1 commit
  5. 03 Aug, 2003 1 commit
  6. 02 Aug, 2003 1 commit
  7. 31 Jul, 2003 1 commit
  8. 28 Jul, 2003 2 commits
  9. 27 Jul, 2003 2 commits
    • Per Cederqvist's avatar
      (isc_mktcpaddress_internal): New name for former · 51840628
      Per Cederqvist authored
      	isc_mktcpaddress.  All callers updated.  The logic for
      	checking the return value from gethostbyname2() was inverted.
      (isc_mktcpaddress): New function.
      (isc_addresssize): New function.
      (isc_addressfamily): New function.
      (isc_addresspointer): New function.
      (isc_bindtcp): Use isc_addresspointer() and isc_addresssize() to
      	simplify the code.
      51840628
    • Per Cederqvist's avatar
      Include isc_addr.h. · b41df307
      Per Cederqvist authored
      b41df307
  10. 12 Jul, 2003 1 commit
    • Per Cederqvist's avatar
      (isc_tcp_accept_fn): Renamed to isc_tcp_accept. Removed the unused hl · 3fc62c56
      Per Cederqvist authored
      	and msg arguments.
      (isc_tcp_destroy_fn): Function removed.
      (isc_connecttcp): Ditto.
      (isc_opentcp): Ditto.
      (isc_tcp_funs): Function table removed.
      (isc_createtcp): Added mcb and initial_state arguments.  Removed
      	obsolete bogus setsockopt() calls.
      (isc_bindtcp): Don't check the type of the session.
      (isc_accept_cb): New function.
      (isc_listentcp): Added the cb argument.  Don't set the state here;
      	that is now done by isc_create().  Add isc_accept_cb() as a
      	read callback.
      3fc62c56
  11. 06 Jan, 2003 1 commit
  12. 29 Nov, 2002 1 commit
  13. 28 Nov, 2002 2 commits
  14. 08 Sep, 2002 1 commit
  15. 06 Sep, 2002 1 commit
  16. 23 Sep, 2001 1 commit
  17. 03 Sep, 2000 1 commit
  18. 28 Apr, 2000 1 commit
  19. 01 May, 1999 1 commit
  20. 17 Apr, 1999 1 commit
  21. 08 Jul, 1998 1 commit
  22. 14 Jun, 1998 1 commit
  23. 06 Jun, 1997 1 commit
  24. 01 Sep, 1995 1 commit
    • Per Cederqvist's avatar
      (isc_createtcp): Fixed calls to setsockopt with · fbda6650
      Per Cederqvist authored
      	SO_LINGER and SO_REUSEADDR arguments.  The old-style style
      	previously used should no longer be necessary on modern operating
      	systems, and in fact it no longer works everywere.
      (isc_listentcp): Clear errno on each loop in the retry loop.
      fbda6650
  25. 05 Apr, 1994 1 commit
  26. 18 Oct, 1993 1 commit
  27. 16 Oct, 1993 1 commit
  28. 15 Oct, 1993 1 commit
  29. 12 Oct, 1993 1 commit
  30. 10 Oct, 1993 1 commit
  31. 25 Jul, 1993 1 commit
  32. 17 Jan, 1993 1 commit
  33. 15 Apr, 1992 1 commit