Commit Graph

116 Commits

Author SHA1 Message Date
Frank Thomas 3bfc78b511 Updated the postal address of the Free Software Foundation in all license headers. See http://lists.ssl.berkeley.edu/pipermail/boinc_dev/2007-October/008939.html for reference.
svn path=/trunk/boinc/; revision=13804
2007-10-09 11:35:47 +00:00
David Anderson 066f01dc26 - Terminology in user web and client:
"task" instead of "result";
    "computer" instead of "host";
    "scheduler request" instead of "scheduler RPC"
    "access to Internet" instead of "access to reference web site"

svn path=/trunk/boinc/; revision=13774
2007-10-04 17:30:28 +00:00
David Anderson 505d04969a - file upload handler: fix major bug (introducted 12 Sept)
that caused it to report "volume full" erroneously
- added --help option to some backend programs;
    gives general info and directs to web page
    file_upload_handler.C

svn path=/trunk/boinc/; revision=13685
2007-09-27 15:08:40 +00:00
David Anderson c0c6cf779d - file upload handler:
in get_file_size() RPC, check if volume has < 1MB available space
    and if so return transient error.
    This prevents client from trying upload,
    which apparently sends entire file even if
    handler fails at the beginning
- API, Win: remove use of GetTickCount(); use dtime() instead
- use new BOINC logo in sample project home page

svn path=/trunk/boinc/; revision=13574
2007-09-12 08:25:22 +00:00
David Anderson 823df51238 - client: allow up to a day (rather than work_buf_min()) to elapsed
between completing a result and reporting it.
- back end: added <httpd_user> config option:
    Web server user name (used by file deleter)
- back end: don't report unparsed XML in config.xml as an error

client/
    app.h
    work_fetch.C
lib/
    shmem.C
sched/
    file_deleter.C
    file_upload_handler.C
    sched_config.C,h
    show_shmem.C

svn path=/trunk/boinc/; revision=13039
2007-06-27 20:09:18 +00:00
David Anderson f5d94818dd - added "census", a program that counts up how much RAC
there is for each HR class, and writes it to a file.
    This will be used soon for HR support in the feeder.
- split the HR code into hr.C,h (stuff used by both census and scheduler)
    and sched_hr.C (stuff used only by the scheduler)
- database: change DB_CREDITED_JOB to treat workunitid
    as a double (which it is) rather than a long.
    BTW, long == int.
- fixed lots of compile warnings in the server code

db/
    boinc_db.C,h
lib/
    boinc_cmd.C
    miofile.C
    util.C
sched/
    Makefile.am
    census.C (new)
    feeder.C
    file_deleter.C
    file_upload_handler.C
    handle_request.C
    hr.C,h (new)
    main.C
    sample_assimilator.C
    sample_work_generator.C
    sched_array.C
    sched_hr.C,h
    sched_send.C
    server_types.C
    transitioner.C
    validator.C

svn path=/trunk/boinc/; revision=12970
2007-06-20 22:34:06 +00:00
David Anderson fcab43c4da - scheduler: support per-app HR type, specified in the DB;
this supercedes the global HR type specified in config.xml
- API: eliminate small memory leak
    (if reread app init file, free malloc'd project prefs from last time)
- file upload handler: parse <md5_cksum> to avoid error msg

lib/
    app_ipc.C
sched/
    file_upload_handler.C
    sched_array.C
    sched_hr.C,h
    sched_send.C,h

svn path=/trunk/boinc/; revision=12936
2007-06-14 18:02:00 +00:00
Jeff Cobb 9ea5467b45 added an fcgi entry counter
svn path=/trunk/boinc/; revision=12733
2007-05-23 20:42:45 +00:00
David Anderson 74c120f8b3 *** empty log message ***
svn path=/trunk/boinc/; revision=12189
2007-03-05 18:34:30 +00:00
David Anderson 47f8a509fe *** empty log message ***
svn path=/trunk/boinc/; revision=11981
2007-01-26 18:38:17 +00:00
David Anderson a951f5e9c1 *** empty log message ***
svn path=/trunk/boinc/; revision=10432
2006-06-21 17:34:55 +00:00
David Anderson 016112bf0d scheduler logging
svn path=/trunk/boinc/; revision=10261
2006-06-07 04:10:04 +00:00
Bruce Allen 490d4858bf scheduler: do a better job of accepting results from host machines
which may modify an EXISTING & OVER result in the database.

file_upload_handler: check for 'stop_upload' trigger file in the
project root directory.  If so, return ERR_TRANSIENT to hosts which
attempt uploads.  This is the equivalent of 'stop_sched' for the
scheduler.  (Eric, you may want to check that this is FCGI compatible).

svn path=/trunk/boinc/; revision=10227
2006-05-31 20:39:32 +00:00
David Anderson da3e0cd427 better XML parsing
svn path=/trunk/boinc/; revision=9592
2006-03-02 22:51:41 +00:00
Bruce Allen 5ac4a0bc33 file_upload_handler: log a message when the client is starting an upload
from the wrong offset.  This problem should gradually go away as users
update to more current clients.

svn path=/trunk/boinc/; revision=9220
2006-01-12 15:36:46 +00:00
David Anderson ebe85fca18 file upload bug fix
svn path=/trunk/boinc/; revision=9213
2006-01-11 22:08:39 +00:00
Jeff Cobb 646c9a5e81 *** empty log message ***
svn path=/trunk/boinc/; revision=9066
2005-12-14 22:48:05 +00:00
David Anderson 9798e714c7 GUI RPC port specification
svn path=/trunk/boinc/; revision=9061
2005-12-13 08:04:57 +00:00
Eric J. Korpela d9ee426071 Added explicit includes of "config.h" in many files to enable use of compilers
without a -include command line option.

svn path=/trunk/boinc/; revision=8896
2005-11-21 18:34:44 +00:00
Reinhard Prix 1c46742951 fixed typo to allow compiling.
svn path=/trunk/boinc/; revision=8763
2005-10-28 14:32:40 +00:00
David Anderson fffc74af1f security, fpops_cumulative fixes
svn path=/trunk/boinc/; revision=8761
2005-10-28 06:26:58 +00:00
Bruce Allen c2d2ee6e3c file_upload_handler: fix broken print statement format
and don't generate an error when parsing client version
release.  Karl, I think the broken print statement
was introduced between rev 1.41 and rev 1.42.

svn path=/trunk/boinc/; revision=8439
2005-10-04 18:30:49 +00:00
Reinhard Prix 38ac7136a9 correct 'return'.
svn path=/trunk/boinc/; revision=8365
2005-09-30 13:04:40 +00:00
Reinhard Prix 6b101e5e31 "everything that can go wrong, WILL go wrong!"
svn path=/trunk/boinc/; revision=8364
2005-09-30 12:54:12 +00:00
David Anderson 941d7e21d8 fix DEBUG symbol collision
svn path=/trunk/boinc/; revision=8189
2005-09-26 23:28:48 +00:00
Jeff Cobb 5218ad9bdf Jeff - pull out old hier dir/url hash function
svn path=/trunk/boinc/; revision=8163
2005-09-23 21:09:00 +00:00
Bruce Allen a6bf4fc4d3 - Backend: To prevent possible namespace confusion in the future, changed the
name of elapsed_time() to elapsed_wallclock_time().
- Backend logging statements on exit() which echo elapsed run time to logs now
      do this with much higher printed precision.
- Backend logging, separate scheduler requests with an almost blank line

svn path=/trunk/boinc/; revision=8027
2005-09-15 15:07:41 +00:00
David Anderson ece2ec37db *** empty log message ***
svn path=/trunk/boinc/; revision=6182
2005-05-17 21:08:48 +00:00
Bruce Allen 835c2090f5 log execution times for two cgi scripts (scheduler and
file_upload_handler)

better print format for timezone

svn path=/trunk/boinc/; revision=6023
2005-05-04 16:31:25 +00:00
Bruce Allen dbeedc0623 Tweaks
svn path=/trunk/boinc/; revision=5894
2005-04-19 19:51:45 +00:00
Bruce Allen d45bc3b42d A bit of further simplification
svn path=/trunk/boinc/; revision=5892
2005-04-19 16:35:59 +00:00
Bruce Allen 2f80ff3793 rework of file_upload_handler. I learned that is it not
reliable to use flock/lockf/fnctl file locking with buffered
IO.  This is because the stream libraries might unexpectedly
open/close/dup file descriptors on you.  So I have modified
the file write/append functions to use raw IO rather than
buffered IO.  In doing this I also found and fixed some small
bugs. There is no guarantee that one can mix flock/lockf/fnctl
file locking so I have settled on fnctl since it is POSIX and
gives the most control.

svn path=/trunk/boinc/; revision=5891
2005-04-19 14:30:07 +00:00
David Anderson 5a844bff5d *** empty log message ***
svn path=/trunk/boinc/; revision=5885
2005-04-18 05:37:31 +00:00
Bruce Allen d719fcfb88 file_upload_handler: fixed another bug. If you fopen(path, "a") in
append mode then fseek() then write to the file, the fseek() HAS
NO EFFECT.  This is documented ANSI C.  So I have eliminated the
fseek.  We now check that the file size corresponds exactly to the
claimed offset of the data.  If they do not agree then return a
transient error to force the host to ask again for the file length
and re-transmit data.

svn path=/trunk/boinc/; revision=5866
2005-04-15 19:44:26 +00:00
David Anderson 05ece15a25 *** empty log message ***
svn path=/trunk/boinc/; revision=5860
2005-04-15 18:43:53 +00:00
Bruce Allen 314c3b3d88 - file_upload_handler: when responding to a request for the
file length, check first that the file is not already
in open (locked) by another file_upload_handler.  If the
file IS open (locked), then do NOT hand back the file length.
Instead return a transient error. This will prevent
transmission of upload data starting at the wrong offset.

- To help understand when/why multiple file_upload_handlers
are trying to write to the same file, set default log level
to DEBUG.  Also log messages at level CRITICAL if there is
an attempt to write to a locked file. We may want to change
this level to DEBUG in the future, if this turns out to be
'normal' TCP buffering of data between host and server.

svn path=/trunk/boinc/; revision=5851
2005-04-14 18:01:54 +00:00
Bruce Allen 4f2f6d4011 File upload handler: to prevent multiple instances of file_upload_handler
from trying to upload the SAME file, use lockf() to place an advisory lock on
the file.  David, I probably should have discussed this with you first, but it's
too early in the morning.  Please revert if this is a mistake!

svn path=/trunk/boinc/; revision=5837
2005-04-12 14:34:07 +00:00
Bruce Allen dbed4d264c Added one more PID to log file
svn path=/trunk/boinc/; revision=5825
2005-04-11 16:14:56 +00:00
Bruce Allen 48a37d0cd2 Added signal handler to file_upload_handler along with a bit
of logging.  This is intended to help debug file uploading
problems, where apache kills the file upload handler because
something is going wrong.

svn path=/trunk/boinc/; revision=5824
2005-04-11 09:00:50 +00:00
David Anderson 8d0ab453b3 *** empty log message ***
svn path=/trunk/boinc/; revision=5443
2005-02-16 23:17:43 +00:00
David Anderson 435f8edd47 *** empty log message ***
svn path=/trunk/boinc/; revision=5161
2005-01-20 23:22:22 +00:00
Bruce Allen f31b244f90 Modified CVS id strings. After some fussing with different versions
of gcc to try and force them to not complain with -Wall but to always
include this, I decided to take a simpler approach.  All these strings
now have global linkage.  To prevent namespace conflicts they all
have different names.  For the record, the variable extension is a hash made of the first ten characters of the md5sum of the file path, eg:
    md5hash=`boinc/api/x_opengl.C | md5sum | cut -c 1-10`

svn path=/trunk/boinc/; revision=4979
2005-01-02 18:29:53 +00:00
David Anderson 66950e2822 replace bad filename hashing function
svn path=/trunk/boinc/; revision=4975
2005-01-02 07:44:40 +00:00
Bruce Allen a24afe2b67 Moved RCSID strings to the end of all .c, .C and .cpp files as per
David's request.

svn path=/trunk/boinc/; revision=4787
2004-12-08 00:40:19 +00:00
David Anderson 2c5f1d1a5b *** empty log message ***
svn path=/trunk/boinc/; revision=4772
2004-12-06 22:41:19 +00:00
Bruce Allen 45525eade1 - Added static volatile const char *BOINCrcsid="$Id$"; string to
the top of all .C files.  This means that 'string' or 'ident'
run on an executable will tell you the exact file versions used
in building it, since CVS replaces $Id$ with a complete version ID
string.  Declaration is volatile so that the compiler won't remove
it even under agressive optimizations.

svn path=/trunk/boinc/; revision=4610
2004-11-20 07:32:32 +00:00
Eric J. Korpela 483ceaca0b *** empty log message ***
svn path=/trunk/boinc/; revision=4456
2004-10-29 04:42:37 +00:00
David Anderson 4fe1dab9bb *** empty log message ***
svn path=/trunk/boinc/; revision=4327
2004-10-14 02:18:06 +00:00
David Anderson b02a64d34e *** empty log message ***
svn path=/trunk/boinc/; revision=4301
2004-10-07 17:39:13 +00:00
David Anderson 4cced25f4d *** empty log message ***
svn path=/trunk/boinc/; revision=4297
2004-10-06 20:45:21 +00:00