Skip to content
Snippets Groups Projects
  1. Apr 25, 2015
    • deuce's avatar
      Fix exit() behaviour by introducing the new js.scope value which is the · f3256d81
      deuce authored
      scripts global scope (as opposed to js.global which is the instance global
      scope), and having exit() define exit_code in js.scope instead of js.global.
      
      This also sets exit_code in js.scope to null when preparing to execute a new
      script.  If a new script starts in the same scope as an old one, the old
      exit_code value will be destroyed.
      
      This should only impact scripts where js.global != js.scope (bbs.exec()ed,
      and mailsrvr)
      f3256d81
  2. Dec 11, 2014
    • rswindell's avatar
      Bug-fix: daily statistics and free-credits-per-day were not reset when the user · 43b6084e
      rswindell authored
      logged in via FTP. This affected: posts_today, emails_today, free_credits,
      timeon_today, and extra time values (e.g. posts_today would contnue to
      accumulate potentially affecting the users ability to post via FTP-uploaded REP
      packet). getuserdat() does the necessary value resets, we just needed to write
      the entire user record back to disk upon successfull login, rather than just
      updating specific fields in the user record on disk. The HTTP server looks like
      it might have the same/similar bug.
      43b6084e
  3. Nov 20, 2014
  4. Oct 30, 2014
  5. Oct 29, 2014
  6. Apr 20, 2014
  7. Jan 08, 2014
  8. Jan 07, 2014
  9. Feb 07, 2013
  10. Oct 24, 2012
  11. Aug 22, 2012
    • rswindell's avatar
      Fix race-condition during shutdown or recycle that could cause crash: · 21dcf57b
      rswindell authored
      active_clients (protected integer) could be 0 at the time of recycle because
      there can be delay at the beginning of the FTP ctrl thread (e.g. looking up
      filtered IPs/hostnames) before the active_clients is incremented which could
      be during/after it was destroyed by the cleanup() function. Now tracking
      number of threads using protected integer which increments immediately upon
      child thread creation and is not destroyed until the main thread terminates.
      There is currently *not* timeout while waiting for child threads to terminate
      upon shutdown/recycle, so this could result in a hung server thread if a child
      thread is indefinitely hung - consider using a timeout.
      21dcf57b
  12. Jul 04, 2012
    • deuce's avatar
      Fix Chrome solution. · 11dfec1b
      deuce authored
      Per RFC3659, the correct response for "Good command, but no size for you" is
      550, not 500 or 501 (these indicate an inability to parse the command).
      
      This works with Chrome.
      11dfec1b
  13. Mar 06, 2012
  14. Oct 29, 2011
    • deuce's avatar
      Fix format-related warnings. · 8563ad46
      deuce authored
      This is *likely* to break the Win32 build and even when the macros are
      specified in xpdev, I doubt Microsoft has added support for the 'z' size
      specifier used in smblib/smbadd.c we'll likely need a SIZE_T_SIZE macro
      that is "z" on C99 systems and "ll" or "64" or whatever it is on Win32.
      
      Or maybe a whole slew of complete SIZE_T macros since the 32/64 but thing
      and the max file size thing may actually need the full format specification
      to be in the macro... "zu" on C99 platforms and whatever magic Microsoft
      needs there.
      8563ad46
  15. Oct 28, 2011
  16. Oct 19, 2011
  17. Oct 16, 2011
  18. Oct 11, 2011
  19. Oct 10, 2011
  20. Oct 09, 2011
  21. Oct 08, 2011
  22. Sep 18, 2011
  23. Sep 01, 2011
  24. Aug 31, 2011
  25. Aug 06, 2011
  26. Jul 13, 2011
  27. Apr 27, 2011
    • rswindell's avatar
      Judicious (even excessive?) use of the volatile keyword on variables that are · 4c54a03d
      rswindell authored
      commonly modified by multiple threads, potentially simultaneously, resulting in
      bad values (e.g. active_clients = -1).
      Updated copyright date to 2011.
      Fixed Win32 compile bug in main.cpp introduced in last commit.
      Eliminated some unused variables and updated some times (e.g. ulong in place
      fo uint32_t).
      4c54a03d
  28. Apr 13, 2011
  29. Jan 29, 2011
  30. Dec 15, 2010
Loading