syncevolution/src/syncevo
Patrick Ohly 2e62210f5c SyncML server: timeouts for unresponsive clients (MB #7710)
A SyncML server cannot resend a message. With HTTP, a reply simply
cannot be sent, for other transports the D-Bus API doesn't support it.
Therefore RetryInterval is ignored and only RetryDuration is used as
the final timeout after which the session is aborted.

The same transport callback is used for client and server. It was
changed to log the timeout duration (sent in via its parameter). The
rest of the logic is in the caller of TransportAgent::wait().

While touching the timeout code in initSAN(), the resending of the SAN
message was removed. This makes the code consistent with the HTTP
SyncML client case, where the initial message is also not resent.

The new test-dbus.py TestConnection.testTimeoutSync covers thus timeout
handling. It depends on setting RetryDuration to 10 in the server-side
config of the sc-api-nat device.
2010-01-15 17:32:21 +01:00
..
Cmdline.cpp command line: support creating new sources (MB #8424) 2009-12-03 16:18:45 +01:00
Cmdline.h command line: preserve and show shared properties (MB #8048) 2009-11-25 16:57:51 +01:00
ConfigNode.h ConfigNode: use map with case-insensitive keys for properties 2009-11-25 16:57:51 +01:00
ConfigTree.h syncevo-dbus-server: removing/clearing of properties in shared configs (MB# 8059) 2009-11-25 16:57:51 +01:00
CurlTransportAgent.cpp syncevo-dbus-server + syncevolution: fixed signal handling and D-Bus suspend/abort/shutdown (MB#7555) 2009-11-09 20:52:28 +01:00
CurlTransportAgent.h TransportAgent: added shutdown(), moved HTTP setup out of core engine 2009-10-07 18:10:55 +02:00
declarations.h namespace SyncEvo: added declaration file 2009-10-03 15:12:09 +02:00
DevNullConfigNode.h config: share properties between peers, configuration view without peer 2009-11-25 16:57:50 +01:00
eds_abi_wrapper.cpp --enable-evolution-compatibility: added icalcomp_get_location/summary (MB#6552), added test 2009-10-13 17:21:54 +02:00
eds_abi_wrapper.h --enable-evolution-compatibility: added icalcomp_get_location/summary (MB#6552), added test 2009-10-13 17:21:54 +02:00
FileConfigNode.cpp ConfigNode: use map with case-insensitive keys for properties 2009-11-25 16:57:51 +01:00
FileConfigNode.h ConfigNode: use map with case-insensitive keys for properties 2009-11-25 16:57:51 +01:00
FileConfigTree.cpp syncevo-dbus-server: removing/clearing of properties in shared configs (MB# 8059) 2009-11-25 16:57:51 +01:00
FileConfigTree.h syncevo-dbus-server: removing/clearing of properties in shared configs (MB# 8059) 2009-11-25 16:57:51 +01:00
FilterConfigNode.cpp ConfigNode: use map with case-insensitive keys for properties 2009-11-25 16:57:51 +01:00
FilterConfigNode.h ConfigNode: use map with case-insensitive keys for properties 2009-11-25 16:57:51 +01:00
HashConfigNode.h ConfigNode API: added writeProperties() and clear() 2009-10-07 18:17:14 +02:00
installcheck-local.sh packaging: another fix for installcheck-local 2009-10-15 14:44:50 +02:00
Logging.cpp files and classes renamed, include statements cleaned up 2009-10-05 14:49:32 +02:00
Logging.h files and classes renamed, include statements cleaned up 2009-10-05 14:49:32 +02:00
LogRedirect.cpp stderr redirection: detect "error" messages and show them (MB#7655) 2009-11-03 14:52:01 +01:00
LogRedirect.h files and classes renamed, include statements cleaned up 2009-10-05 14:49:32 +02:00
LogStdout.cpp files and classes renamed, include statements cleaned up 2009-10-05 14:49:32 +02:00
LogStdout.h files and classes renamed, include statements cleaned up 2009-10-05 14:49:32 +02:00
Makefile.am Merge remote branch 'origin/syncevolution-0-9-branch' 2009-11-30 21:41:53 +01:00
MultiplexConfigNode.cpp config: share properties between peers, configuration view without peer 2009-11-25 16:57:50 +01:00
MultiplexConfigNode.h config: share properties between peers, configuration view without peer 2009-11-25 16:57:50 +01:00
ObexTransportAgent.cpp ObexTransportAgent: Error handling improvements 2010-01-05 14:52:04 +08:00
ObexTransportAgent.h ObexTransportAgent: fix typos 2009-12-24 12:10:22 +08:00
PrefixConfigNode.cpp ConfigNode: use map with case-insensitive keys for properties 2009-11-25 16:57:51 +01:00
PrefixConfigNode.h ConfigNode: use map with case-insensitive keys for properties 2009-11-25 16:57:51 +01:00
SafeConfigNode.cpp ConfigNode: use map with case-insensitive keys for properties 2009-11-25 16:57:51 +01:00
SafeConfigNode.h ConfigNode: use map with case-insensitive keys for properties 2009-11-25 16:57:51 +01:00
SmartPtr.h SmartPtr: allow tracking of non-pointer objects 2010-01-15 17:32:14 +01:00
SoupTransportAgent.cpp SoupTransportAgent + syncevo-dbus-server: avoid segfault when aborting (MB #8385) 2009-12-02 11:49:19 +01:00
SoupTransportAgent.h TransportAgent: added shutdown(), moved HTTP setup out of core engine 2009-10-07 18:10:55 +02:00
SyncConfig.cpp SyncConfig::removeSyncSource(): did not remove sources inside peers (MB #9065) 2010-01-13 18:01:21 +01:00
SyncConfig.h command line: support creating new sources (MB #8424) 2009-12-03 16:18:45 +01:00
SyncContext.cpp SyncML server: timeouts for unresponsive clients (MB #7710) 2010-01-15 17:32:21 +01:00
SyncContext.h SyncML server: timeouts for unresponsive clients (MB #7710) 2010-01-15 17:32:21 +01:00
syncevolution.pc.in Dynamic loadable backends: repackage libsyncevolution to enable dynamic loadable backends 2009-09-23 07:35:25 +02:00
SyncML.cpp DBus server: add source status and progress for restore (MB#8144) 2009-12-25 09:42:06 +08:00
SyncML.h DBus server: add source status and progress for restore (MB#8144) 2009-12-25 09:42:06 +08:00
SyncSource.cpp client-test: use independent context for testing sources 2010-01-13 16:52:37 +01:00
SyncSource.h ClientTest: enabling the test with virtual syncsource 2009-12-17 10:18:18 +08:00
SynthesisDBPlugin.cpp SyncSource luid-guid mapping: luid is not unique, can not be used as key. 2009-12-10 17:15:18 +08:00
SynthesisEngine.cpp syncevo-dbus-server/syncevolution-http-server.py: SyncML HTTP server 2009-10-07 18:15:45 +02:00
SynthesisEngine.h syncevo-dbus-server/syncevolution-http-server.py: SyncML HTTP server 2009-10-07 18:15:45 +02:00
TrackingSyncSource.cpp Server Alerted Sync: Set Content Type in SAN 2009-11-30 11:44:38 +01:00
TrackingSyncSource.h Server Alerted Sync: Set Content Type in SAN 2009-11-30 11:44:38 +01:00
TransportAgent.cpp syncevo-dbus-server: allow SAN messages to start a Connection 2009-10-07 18:12:57 +02:00
TransportAgent.h TransportAgent::setCallback(): comment clarification about how often it is called 2010-01-15 17:32:21 +01:00
util.cpp utility function: cp_r() for recursive copying 2009-12-01 17:27:58 +01:00
util.h utility function: cp_r() for recursive copying 2009-12-01 17:27:58 +01:00
VolatileConfigNode.h files and classes renamed, include statements cleaned up 2009-10-05 14:49:32 +02:00
VolatileConfigTree.h config: reorganized for shared config layout (MB#7707) 2009-11-25 16:57:50 +01:00