Commit graph

31 commits

Author SHA1 Message Date
Paul Beckingham
f1f93aa5d5 TLS
- If a CA is provided, it is used.
2013-11-03 12:49:56 -05:00
Paul Beckingham
8c9bc99af6 Feature #1423
- #1423 sync vs. push, pull, merge collision avoidance.
2013-11-03 12:04:21 -05:00
Paul Beckingham
169cc7b5cb Code Cleanup
- Removed unused header.
- Added ctor initialization.
- Removed misleading comment.
2013-10-30 00:20:38 -04:00
Paul Beckingham
eda9ac56da Certificates
- Added certificate verification callback.
2013-10-29 23:02:32 -04:00
Paul Beckingham
9e7e807909 Sync
- Verifies presence of the certificate on sync, instead of blindly assuming it
  exists.
2013-09-15 23:32:31 -04:00
Paul Beckingham
2a5bf05590 TLS
- Error strings were being constructed incorrectly.
- Client-side handshake errors were treated as recoverable.
- TLS errors were being displayed as debug messages, not errors.
2013-09-15 01:55:03 -04:00
Paul Beckingham
7c356a943c Bug
- Running 'task sync init' was not clearing the existing backlog.data file.
2013-09-07 23:45:04 -04:00
Paul Beckingham
88abd93e52 Feature
- Protects against interrupt during critical DB commit and sync operations.
2013-09-07 14:24:35 -04:00
Paul Beckingham
67f20d96bc Code Cleanup
- Fixed typo, for consistency.
2013-08-04 15:56:17 -04:00
Paul Beckingham
dd14388b1b Sync
- Implemented (weak) handling for a 310 "Redirect" server response.
2013-07-14 12:25:31 -04:00
Paul Beckingham
d4fabba8ee Performance
- Now detects whether any sync merging needs to happen, and if not, skips the
  loading of all data.
2013-07-06 14:44:55 -04:00
Paul Beckingham
2aadf445bc Code Cleanup
- Removed unused timing from the sync command.
2013-07-05 08:58:05 -04:00
Paul Beckingham
19077f76df Bug
- Fixed bug with backlog parsing.
2013-06-09 00:44:59 -04:00
Paul Beckingham
8e5b57954d TLS
- Fixed loop termination bug.
- Chose a better default buffer size.
2013-06-08 23:34:06 -04:00
Paul Beckingham
14d3fd00e3 Sync
- Adds a new 'initialize' synchronize command argument that uploads all pending
  tasks for first-time initialization.
2013-06-08 18:00:50 -04:00
Paul Beckingham
58084f6d7a Sync
- Modifed the column 0 task indicator from '[' to '{', for backlog.data lines.
2013-06-02 22:38:20 -04:00
Paul Beckingham
1e9fb8eebc Sync
- Implemented sync over TLS.
- Obsoleted the Socket code, replacing it with TLSClient, TLSServer.
- Added task server details to the 'diagnostics' command output.
- 'rc.debug.tls' controls the GnuTLS log level.
- Removed redundant cmake diagnostics.
2013-05-12 01:05:58 -04:00
Paul Beckingham
a973ccf8f2 Sync
- When taskwarrior is built without GnuTLS, there will be a message to that
  effect.
- Stubbed the TLSClient calling code.  The current Socket code will become
  obsolete soon.
2013-05-11 13:07:14 -04:00
Paul Beckingham
773b55d374 Code Cleanup
- Removed L10N define.  It served its purpose.
2013-04-07 23:50:51 -04:00
Paul Beckingham
bc94816184 Performance
- Removed Context::timer_sync, as it makes no sense now that sync is not an
  automatic operation like gc.
2013-04-02 23:45:34 -04:00
Paul Beckingham
cda35c03d6 Sockets
- Suppports IPv4 and IPv6 task server addresses.
- Cleaned up error message when server is not available.
2012-10-14 02:10:12 -04:00
Paul Beckingham
47d94f370e Sync Feedback
- Added a detailed sync summary message, indicating what happened.
- Improved and localized the feedback messages for the sync command.
- Added color to the add/modify feedback, matching the merge command.
- Enabled the sync timer for debugging output.
2012-10-13 12:14:46 -04:00
Paul Beckingham
8fa7d135db Sync
- Provided protocol version in sync message.
- Improved feedback messages.
2012-10-10 23:34:52 -04:00
Paul Beckingham
d060bf166d Sync
- Distinguishes between new upstream tasks and deltas.
- Handles 201 (nop) code from task server.
- Removed unnecessary \r\n from messages.
- Cleaned up some of the diagnostic output.
2012-10-08 17:47:07 -04:00
Paul Beckingham
98d9a367f3 Sync
- Corrected handling of backlog.data after a synch, using TF2::clear_tasks.
2012-10-08 17:43:14 -04:00
Paul Beckingham
c5ff24358c Feature #934
- Feature #934, supports 'reserved.lines' to indicate a multi-line prompt for
  use in conjunction with 'limit:page' (thanks to Robert Gill).
- Removed 'locale' from the taskrc.5 man page.
- Added verbosity token 'sync'.
- Fixed bug in size calculation for 'limit:page', but there is still one more.
- Corrected unit test limit.t given the above fix.
2012-10-06 15:29:00 -04:00
Paul Beckingham
9cbd729553 Sync
- Added server credential handling.
- Added server error handling.
- Added task download handling.
- Added backlog truncation and synch_key handling.
- Added display of server-side messages.
- Cleaned up NEWS file for 2.3.0.
- Removed duplicate info in diagnostics command output.
2012-10-06 14:15:51 -04:00
Paul Beckingham
8d3e340819 Sync
- Properly marked sync command as not displaying IDs, therefore no GC.
2012-10-06 10:23:29 -04:00
Paul Beckingham
936720220c Sync
- Implemented the high-level communications, still without TLS.
- Includes temporary diagnostics, and unlocalized error messages.  These will
  converge upon proper and useful error messages as the command matures.
2012-10-06 10:15:06 -04:00
Paul Beckingham
e7e34b7148 Sync
- Added a ::send method to CmdSync to perform the transfer.  Note that this
  does not yet include any TLS.
2012-10-06 09:07:30 -04:00
Paul Beckingham
becd8f155c Synchronize Command
- Added the stub of the sync command.
2012-10-01 23:16:08 -04:00
Renamed from src/commands/CmdSynch.cpp (Browse further)