1. 18 Oct, 2006 1 commit
    • Per Cederqvist's avatar
      Renamed sync_output_header to foutput_header, and clean up the · ba79469c
      Per Cederqvist authored
      time handling.  This is more preparation for bug 1616.
      * src/server/simple-cache.c (sync_output_header): Renamed to
      foutput_header and moved to ram-output.c.  All callers updated.
      * src/server/ramkomd.c (current_time): Moved to server-time.c.
      (main): Use set_initial_time instead of calling gettimeofday and
      accessing current_time directly.
      * src/server/ram-output.c, src/server/ram-output.h
      (foutput_header): Renamed from sync_output_header.  Use
      output_format instead of a hardcoding it to 2.
      * src/server/dbck.c (main): Call set_initial_time().
      * src/server/dbck-cache.c (sync_output_header): Use foutput_header
      to output a format 2 header.
      * src/server/server-time.c: New file.
      (current_time): Moved here from ramkomd.c.
      * src/server/server-time.c, src/server/server-time.h
      (set_time): Moved here from connections.c.
      (set_initial_time): New function.
      * src/server/connections.c (set_ time): Moved to server-time.c.
      * src/server/Makefile.am (GENOBJS): Added server-time.c.
      (DBCK): Ditto.
      ba79469c
  2. 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
  3. 27 Dec, 2005 2 commits
  4. 18 Dec, 2005 2 commits
    • Per Cederqvist's avatar
      Updated year in copyright statement · c064ceeb
      Per Cederqvist authored
      c064ceeb
    • Per Cederqvist's avatar
      (parse_unparsed) [DEBUG_CALLS]: Don't process any request if the · b0fc9cb7
      Per Cederqvist authored
      	client is disabled by disable_client.
      (may_read_more): New method, extracted from read_from_connection.
      	Return false if disabled by disable_client.
      (should_be_disabled): New method, extracted from read_from_connection
      	and check_idle_callback. Return true if disabled by
      	disable_client.
      (read_from_connection): Simplified code by using may_read_more and
      	should_be_disabled.
      (check_idle_callback): Simplified code by using should_be_disabled.
      (disable_client): New debug request.
      b0fc9cb7
  5. 18 Jul, 2004 1 commit
    • Per Cederqvist's avatar
      Doc added. · 56396484
      Per Cederqvist authored
      (set_time): Added a missing newline in a log message.
      56396484
  6. 28 Aug, 2003 1 commit
  7. 23 Aug, 2003 2 commits
  8. 22 Aug, 2003 3 commits
  9. 20 Aug, 2003 1 commit
  10. 17 Aug, 2003 1 commit
  11. 16 Aug, 2003 1 commit
  12. 14 Aug, 2003 2 commits
    • Per Cederqvist's avatar
      (login_request): Set the priority and weight from · aea3feb4
      Per Cederqvist authored
      	param.default_priority and param.default_weight.
      (adjust_penalty): Use the weight to reduce the penalty.
      (get_scheduling): Return the actual scheduling information from
      	the connection.
      (set_scheduling): Check the priority and weight against
      	param.max_priority and param.max_weight.  Allow the user to
      	change them, as long as it is done within those limits.  Store
      	the new values in the connection.  Note: the current
      	implementation cannot handle more than one priority.  The
      	check for that is made in server-config.c.
      aea3feb4
    • Per Cederqvist's avatar
      (get_scheduling): New request. · e9f8f856
      Per Cederqvist authored
      (may_change_scheduling): New static function.
      (set_scheduling): New request.
      e9f8f856
  13. 12 Aug, 2003 1 commit
  14. 07 Aug, 2003 1 commit
  15. 06 Aug, 2003 3 commits
  16. 05 Aug, 2003 1 commit
    • Per Cederqvist's avatar
      (dump_connections): Include a flag that tells if the session has · f8c95599
      Per Cederqvist authored
      	completed the handshake or not.
      (dns_resolution): New function.
      (get_host_name): Removed.
      (login_request): Reorganized the code to use the new
      	callback-driven API of ISC host lookups.
      (handle_accept_event): Call set_time(), so that the connect_time
      	is set correctly.
      f8c95599
  17. 04 Aug, 2003 1 commit
  18. 02 Aug, 2003 1 commit
  19. 01 Aug, 2003 3 commits
  20. 31 Jul, 2003 2 commits
  21. 30 Jul, 2003 1 commit
  22. 28 Jul, 2003 1 commit
  23. 27 Jul, 2003 1 commit
  24. 24 Jul, 2003 2 commits
  25. 23 Jul, 2003 1 commit
  26. 14 Jul, 2003 1 commit
  27. 13 Jul, 2003 2 commits