Commit Graph

98 Commits

Author SHA1 Message Date
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
David Anderson 156930d204 *** empty log message ***
svn path=/trunk/boinc/; revision=4003
2004-08-06 11:42:41 +00:00
David Anderson 2e22f60414 *** empty log message ***
svn path=/trunk/boinc/; revision=3977
2004-08-04 13:11:21 +00:00
Karl Chen afd778de8a *** empty log message ***
svn path=/trunk/boinc/; revision=3863
2004-07-13 13:54:09 +00:00
Karl Chen bc8fce1808 *** empty log message ***
svn path=/trunk/boinc/; revision=3856
2004-07-13 10:36:18 +00:00
David Anderson 1e356c9c6e *** empty log message ***
svn path=/trunk/boinc/; revision=3611
2004-06-16 20:18:57 +00:00
Brian Boshes 5dedf899fc main.C
svn path=/trunk/boinc/; revision=3528
2004-06-10 21:00:33 +00:00
Brian Boshes fab83ac1fe file_upload_handler.C
svn path=/trunk/boinc/; revision=3525
2004-06-10 17:00:18 +00:00
David Anderson 68039a57e2 *** empty log message ***
svn path=/trunk/boinc/; revision=3513
2004-06-09 00:12:22 +00:00
David Anderson c46546288e *** empty log message ***
svn path=/trunk/boinc/; revision=3508
2004-06-07 03:34:07 +00:00
David Anderson 274215c722 *** empty log message ***
svn path=/trunk/boinc/; revision=3338
2004-05-05 00:50:33 +00:00
David Anderson dd51f9ea18 *** empty log message ***
svn path=/trunk/boinc/; revision=3232
2004-04-08 08:15:23 +00:00
David Anderson 1789c56b61 *** empty log message ***
svn path=/trunk/boinc/; revision=2915
2004-01-22 01:35:09 +00:00
David Anderson 995b1d7256 *** empty log message ***
svn path=/trunk/boinc/; revision=2882
2004-01-15 21:24:55 +00:00
Eric J. Korpela 97ba8a71e0 Added include of <unistd.h> (when found) to get definition of gethostname()
under solaris.

svn path=/trunk/boinc/; revision=2805
2003-12-17 19:14:17 +00:00
Eric J. Korpela c5ef14c7e1 *** empty log message ***
svn path=/trunk/boinc/; revision=2804
2003-12-17 19:11:47 +00:00
David Anderson d9ac291a03 *** empty log message ***
svn path=/trunk/boinc/; revision=2797
2003-12-15 02:31:29 +00:00
Karl Chen 21ae393ff9 *** empty log message ***
svn path=/trunk/boinc/; revision=2431
2003-10-10 05:05:34 +00:00
David Anderson f1eceb8605 *** empty log message ***
svn path=/trunk/boinc/; revision=2220
2003-09-02 21:16:55 +00:00