Commit Graph

217 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 d8c6e5a17f - client: clean up (old undergrad-written) code related to pers file xfer.
The main goal is to fix a bug where,
        if a file is deleted from a project's download server,
        a client will keep trying to download it for 2 weeks.
        A download "file not found" is a permanent error, not transient.
        (fixes #383)
        In general, revised and renamed things to clarify the
        distinction between permanent and transient errors.
        Old functions:
            handle_xfer_failure(), try_next_url(), xfer_failed(), retry_or_backoff()
        New functions:
            permanent_failure(), transient_failure()
    - manager: compile fix for win (don't include sys/wait.h)

svn path=/trunk/boinc/; revision=13641
2007-09-24 18:32:55 +00:00
David Anderson bc5b979afb - Added new script "update_versions_v6"; use this instead of
update_versions to add version 6 apps.
    It looks for API_VERSION string in main executable,
    adds the API version to the app_version XML,
    and sets min_core_version to 6 for version 6+ apps
- API: include API_VERSION string
- convert tabs to spaces here and there
- scheduler: parse unused elements in <net_stats>
- ops/show_log.php: if no URL args, just show form (fixes #415)
- client: parse and store api_version (not used yet)

svn path=/trunk/boinc/; revision=13627
2007-09-21 18:10:54 +00:00
David Anderson dabba949a4 - client: when a job finishes, read last (not first) 63KB of stderr
- client: parse <cpid_time> in scheduler reply;
        add cpid_time field to PROJECT.
        This defaults to the user_create_time.
        In deciding which CPID to send in a scheduler request,
        use the one with oldest cpid_time (not user_create_time).
        This is the client half of fixing a bug that causes
        CPID to flip/flop between to values in a certain case.

svn path=/trunk/boinc/; revision=13531
2007-09-03 23:00:22 +00:00
David Anderson cda95fd0ba - client: fix bug where if you get no work from a project
with zero delay_request,
    the client immediately requests more work

svn path=/trunk/boinc/; revision=13237
2007-07-28 22:15:31 +00:00
David Anderson 9850a17167 - GUI RPC: add graphics_exec_path and slot_path fields to RESULT.
These let the Manager run the graphics app.
    Graphics apps have physical name *v6graphics*
- Separated ACTIVE_TASK::write() and ACTIVE_TASK::write_gui().
    These need to write largely disjoint set of items.
- code cleanup: remove a zillion "else"s in parsing code
- code cleanup: change a zillion match_tag(buf, "<foo/>"
    to parse_bool(buf, "foo")

client/
    app.C,h
    client_state.C
    client_types.C,h
lib/
    gui_rpc_client.h
    gui_rpc_client_ops.C
sched/
    server_types.C

svn path=/trunk/boinc/; revision=12938
2007-06-14 23:08:43 +00:00
David Anderson 4f81994be6 - Add a mechanism for a project to shut down gracefully.
If <ended>1</ended> is included in config.xml,
    this gets send to clients,
    and they display a "Project ended - OK to detach" message.

client/
    client_state.C
    client_types.C,h
    scheduler_op.C
clientgui/
    VIewProjects.cpp
    VIewProjectsGrid.cpp
lib/
    gui_rpc_client.h
    gui_rpc_client_ops.C
    gui_rpc_client_print.C
sched/
    sched_config.C,h
    server_types.C

svn path=/trunk/boinc/; revision=12742
2007-05-24 16:07:21 +00:00
David Anderson f7e650191a - client: change Win program launch to suppress hourglass cursor
- client simulator: add --cpu_sched_rr_only and --dual_dcf options

client/
    app.h
    app_start.C
    client_types.C,h
    cpu_sched.C
    cs_scheduler.C
    sim.C,h
    work_fetch.C

svn path=/trunk/boinc/; revision=12671
2007-05-15 20:29:26 +00:00
David Anderson bd8b0aed41 - core client: on attach to project,
if the initial sched request failed,
		the manager would show "communicating" for 60 sec,
		then time out and show "failed to attach".
		But the project would actually be attached.
		This was due to a logic error,
		but I fixed it in a more fundamental way:
		by considering an attach to be complete immediately,
		without waiting for a successful scheduler RPC.

		This was originally done to ensure that the URL and account key were valid.
		But when using the BOINC Manager, we've already verified
		both of these before doing the attach project RPC.

		When using boinc_cmd, you now have to check for messages
		indicating a bad URL or account key.
		I changed things to print these messages on every sched RPC.

		Implementation: the notion of "tentative project" no longer exists.

	client/
		client_state.C,h
		client_types.C,h
		cs_account.C
		cs_benchmarks.C
		cs_scheduler.C
		gui_rpc_server_ops.C
		scheduler_op.C
		sim.C
		sim_util.C

svn path=/trunk/boinc/; revision=12663
2007-05-14 19:18:45 +00:00
David Anderson a3c22a1bf7 - client: add constructor/destructor for APP_VERSION, WORKUNIT, RESULT
- client: with anonymous platform, don't link app version twice

client/
    client_types.h
    client_state.C
    cs_apps.C
    cs_files.C
    cs_prefs.C
    cs_scheduler.C
    cs_statefile.C
    sim_util.C
html/
    uotd.inc
sched/
    edf_sim.h
    server_types.h

svn path=/trunk/boinc/; revision=12638
2007-05-10 16:23:10 +00:00
David Anderson 7619242655 - Core client: small changes to make the client simulator act reasonably.
- change > to >= for check for running beyond sched period
        - adjust debts before calculating anticipated debt
    
    client/
        client_types.h
        cpu_sched.C
        sim.C

svn path=/trunk/boinc/; revision=12546
2007-05-03 21:22:24 +00:00
David Anderson 4a1741e220 - Core client: handle multiple platforms correctly.
Remove the tacet assumption that a host can handle
        applications for a single platform.
        With the Apr 30 scheduler changes,
        a project may (at different times)
        send app versions for the same app and version number,
        but different platforms.
        Before we would have ignored all but the first;
        now we handle them correctly.

        Implementation notes:
        - Add APP_VERSION.platform, RESULT.platform,
            and RESULT.version_num.
            If these are missing from an XML doc
            (e.g. an existing state file or a scheduler reply
            from a project not running current server)
            then set to the primary platform.
        - Continue to write workunit.version_num
            and active_task.version_num to state file,
            even though these are no longer part of the struct.
            This allows users to revert to an older version.

    client/
        app.C
        check_state.C
        client_state.C,h
        client_types.C,h
        cs_apps.C
        cs_scheduler.C
        cs_statefile.C
        sim.C

svn path=/trunk/boinc/; revision=12542
2007-05-03 17:14:30 +00:00
Rom Walton a100628ee8 - fixes #154:
* refactored the alternate platform mechinism so that we
          can support multiple alternate platforms.
        * moved everything to cs_platforms.C since we expect the
          kind of sprawl that is in host_info.C on the *nix
          environments.
    - Clean up some warnings
          
    client/
        acct_setup.C
        client_state.C, .h
        client_types.h
        cs_platforms.C (Added)
        cs_scheduler.C
        cs_statefile.C
        http_curl.C
    lib/
        str_util.h

svn path=/trunk/boinc/; revision=12531
2007-05-02 17:53:35 +00:00
David Anderson bc98f0e90c *** empty log message ***
svn path=/trunk/boinc/; revision=12367
2007-04-13 22:55:18 +00:00
David Anderson e6f9499b02 *** empty log message ***
svn path=/trunk/boinc/; revision=12361
2007-04-13 04:22:20 +00:00
David Anderson 3eaea4fb71 *** empty log message ***
svn path=/trunk/boinc/; revision=12347
2007-04-11 21:49:57 +00:00
David Anderson 8ee50511de *** empty log message ***
svn path=/trunk/boinc/; revision=12277
2007-03-28 21:30:45 +00:00
David Anderson 2b440dacfe *** empty log message ***
svn path=/trunk/boinc/; revision=12188
2007-03-05 00:32:26 +00:00
David Anderson 6b4803d969 *** empty log message ***
svn path=/trunk/boinc/; revision=12146
2007-02-23 20:24:52 +00:00
David Anderson 3f17de9d9d *** empty log message ***
svn path=/trunk/boinc/; revision=11971
2007-01-25 21:36:27 +00:00
David Anderson 71fc6345b7 *** empty log message ***
svn path=/trunk/boinc/; revision=11957
2007-01-24 21:20:57 +00:00
David Anderson d7811336bc *** empty log message ***
svn path=/trunk/boinc/; revision=11911
2007-01-19 20:56:49 +00:00
David Anderson e06c5202bb *** empty log message ***
svn path=/trunk/boinc/; revision=11831
2007-01-11 00:20:58 +00:00
David Anderson a810ae3be7 *** empty log message ***
svn path=/trunk/boinc/; revision=11806
2007-01-08 22:15:21 +00:00
David Anderson 19785132bc *** empty log message ***
svn path=/trunk/boinc/; revision=11712
2006-12-21 16:56:33 +00:00
David Anderson 6d48e0e244 *** empty log message ***
svn path=/trunk/boinc/; revision=11656
2006-12-12 23:32:25 +00:00
David Anderson dcf1b946db *** empty log message ***
svn path=/trunk/boinc/; revision=11589
2006-11-26 02:06:30 +00:00
David Anderson 76991d81b5 *** empty log message ***
svn path=/trunk/boinc/; revision=11561
2006-11-21 20:57:36 +00:00
David Anderson 27d33df2d4 *** empty log message ***
svn path=/trunk/boinc/; revision=11553
2006-11-20 16:52:03 +00:00
David Anderson 6f6f62c955 *** empty log message ***
svn path=/trunk/boinc/; revision=11515
2006-11-10 17:55:22 +00:00
David Anderson 92a34648a6 *** empty log message ***
svn path=/trunk/boinc/; revision=11494
2006-11-08 00:20:16 +00:00
David Anderson 61865a41bd *** empty log message ***
svn path=/trunk/boinc/; revision=11341
2006-10-23 16:00:51 +00:00
David Anderson fc17c0202b *** empty log message ***
svn path=/trunk/boinc/; revision=11329
2006-10-20 20:21:33 +00:00
David Anderson bc129b6bbb *** empty log message ***
svn path=/trunk/boinc/; revision=11278
2006-10-12 19:43:55 +00:00
David Anderson 0496940440 *** empty log message ***
svn path=/trunk/boinc/; revision=11265
2006-10-09 21:43:59 +00:00
David Anderson dbea89c8b2 *** empty log message ***
svn path=/trunk/boinc/; revision=11262
2006-10-09 18:58:52 +00:00
David Anderson 6709910d1c *** empty log message ***
svn path=/trunk/boinc/; revision=11118
2006-09-06 21:58:12 +00:00
David Anderson 7ce1144b73 *** empty log message ***
svn path=/trunk/boinc/; revision=11076
2006-09-01 21:06:30 +00:00
David Anderson d079ddd589 startup sequence
svn path=/trunk/boinc/; revision=11000
2006-08-24 20:33:46 +00:00
David Anderson 0e5c16169f *** empty log message ***
svn path=/trunk/boinc/; revision=10989
2006-08-23 21:14:47 +00:00
David Anderson 20dea204ca *** empty log message ***
svn path=/trunk/boinc/; revision=10972
2006-08-22 20:58:57 +00:00
David Anderson 65e0f38e2e *** empty log message ***
svn path=/trunk/boinc/; revision=10749
2006-07-25 21:07:14 +00:00
David Anderson 379e5303d3 *** empty log message ***
svn path=/trunk/boinc/; revision=10652
2006-07-14 21:08:12 +00:00
David Anderson 0f9b83a55b project files
svn path=/trunk/boinc/; revision=10517
2006-06-26 22:58:24 +00:00
David Anderson 1234444558 app user friendly name
svn path=/trunk/boinc/; revision=10516
2006-06-26 19:08:00 +00:00
David Anderson 89188d2aa5 *** empty log message ***
svn path=/trunk/boinc/; revision=10417
2006-06-20 22:03:15 +00:00
David Anderson 0a3a8bdbf7 *** empty log message ***
svn path=/trunk/boinc/; revision=10416
2006-06-20 20:29:10 +00:00
David Anderson 3c80d4726f verify-files-on-app-start option
svn path=/trunk/boinc/; revision=10413
2006-06-20 17:36:28 +00:00
David Anderson c745174e90 *** empty log message ***
svn path=/trunk/boinc/; revision=10402
2006-06-19 22:20:24 +00:00
David Anderson 89930e4aa8 *** empty log message ***
svn path=/trunk/boinc/; revision=10400
2006-06-19 17:40:53 +00:00