1 2009-02-04 Graham Cobb <g+770@cobb.uk.net>
3 * opensync/group/opensync_member.c (osync_member_load): Use osync_member_add_objtype_sink
4 so references get added properly.
5 (osync_member_flush_objtypes): Use osync_member_remove_objtype_sink so references get
8 * opensync/ipc/opensync_queue.c (osync_queue_set_message_handler): Fix bad osync_trace format
10 2009-02-03 Graham Cobb <g+770@cobb.uk.net>
12 * tests/plugin-tests/check_plugin_config.c (plugin_config_advancedoption_set_get): Use new definition
13 of osync_plugin_config_get_advancedoption_value_by_name
15 * opensync/plugin/opensync_plugin_config.c (osync_plugin_config_get_advancedoption_value_by_name): Return
16 option value [Bug #1032]
18 * opensync/plugin/opensync_plugin_config.h: Fix osync_plugin_config_get_advancedoption_value_by_name
19 to return a const char * [Bug #1032]
21 * tests/ipc-tests/check_ipc.c (ipc_loop_timeout_with_idle): Change test parameters
22 so test completes within 30 second limit.
24 2009-02-02 Graham Cobb <g+770@cobb.uk.net>
26 * opensync/ipc/opensync_queue_private.h (OSYNC_QUEUE_PENDING_QUEUE_MIN_TIMEOUT): Define
27 minimum pending queue timeout.
29 * opensync/ipc/opensync_queue.c (_osync_queue_restart_pending_timeout): Apply
30 minimum value to pending queue timeout.
32 2009-02-01 Graham Cobb <g+770@cobb.uk.net>
34 * tests/ipc-tests/check_ipc.c: Add ipc_timeout_noreceiver test.
36 * opensync/ipc/opensync_queue.c (osync_queue_send_message_with_timeout): Track maximum
37 timeout seen. Start pending queue timeout.
38 (_osync_queue_remove_pending_reply): restart pending queue timeout if necessary
39 (_osync_queue_restart_pending_timeout): Add function to start/restart pending queue timeout
40 (_timeout_check): Fix calculation of expiry of timeout. Add pending queue timeout.
41 (_timeout_dispatch): Fix calculation of expiry of timeout. Add pending queue timeout.
43 * opensync/ipc/opensync_queue_private.h: Add max_timeout and pending_timeout fields (to queue).
44 (OSYNC_QUEUE_PENDING_QUEUE_IPC_DELAY): Add value to assume for IPC delay in pending queue timout.
46 2009-01-25 Graham Cobb <g+770@cobb.uk.net>
48 * opensync/engine/opensync_sink_engine.c (osync_sink_engine_new): Ref objengine [Bug #1052]
49 (osync_sink_engine_unref): Unref objengine [Bug #1052]
51 * opensync/engine/opensync_obj_engine.c (_osync_obj_engine_*_callback): Unref sinkengine [Bug #1052]
52 (osync_obj_engine_command): Ref sinkengine every time it is used for a callback [Bug #1052]
54 * opensync/ipc/opensync_queue.c (osync_queue_disconnect): Empty pending
55 queue before performing disconnect. Pending messages with callbacks
56 will get called with an error message.
57 (_incoming_check): Do not action incoming queue if a disconnect is in progress.
58 This avoids entries being added to pending queue while we are trying to empty it.
59 (osync_queue_send_message_with_timeout): Do not allow sending messages which require
60 adding entries to the reply queue pending list if the reply queue is being disconnected.
62 * opensync/ipc/opensync_queue_private.h: Add disc_in_progress flag to queue.
64 2009-01-24 Graham Cobb <g+770@cobb.uk.net>
66 * opensync/ipc/opensync_queue.c (_osync_queue_generate_error): Add
67 _osync_queue_generate_error
68 (_osync_send_timeout_response): If there is no reply queue,
69 call _osync_queue_generate_error
71 * tests/CMakeLists.txt: Add ipc_timeout_noreplyq
73 * tests/ipc-tests/check_ipc.c: Add ipc_timeout_noreplyq
75 * opensync/ipc/opensync_queue.c (osync_queue_remove_cross_link): Add
76 osync_queue_remove_cross_link
77 (osync_queue_disconnect): Call osync_queue_remove_cross_link
79 * opensync/ipc/opensync_queue_internals.h: Add osync_queue_remove_cross_link
81 2009-01-23 Graham Cobb <g+770@cobb.uk.net>
83 * opensync/client/opensync_client.c (osync_client_set_incoming_queue): Call
84 osync_queue_set_pending_limit
86 * tests/ipc-tests/check_ipc.c: Call osync_queue_set_pending_limit in timeout tests.
88 * opensync/ipc/opensync_queue_internals.h: Add osync_queue_set_pending_limit
89 and OSYNC_QUEUE_PENDING_LIMIT
91 * opensync/ipc/opensync_queue.c (_incoming_check): Check pendingLimit not exceeded.
92 Add increments/decrements of pendingCount whenever pendingReplies is manipulated.
93 (osync_queue_set_pending_limit): Add osync_queue_set_pending_limit
95 * opensync/ipc/opensync_queue_private.h: Add pendingCount, pendingLimit to OSyncQueue
97 * tests/CMakeLists.txt: Add ipc_loop_timeout_with_idle.
99 * tests/ipc-tests/check_ipc.c: Rename callback_handler as callback_handler_check_reply.
100 Rename server_handler3 as server_handler_abort.
101 Rename client_handler6 as client_handler_sleep.
102 Add ipc_loop_timeout_with_idle.
104 2009-01-22 Graham Cobb <g+770@cobb.uk.net>
106 * tests/CMakeLists.txt: Add ipc_loop_with_timeout
109 * tests/ipc-tests/check_ipc.c: Call osync_queue_cross_link every time
110 client mainloop is setup.
111 (ipc_timeout): Rewrite client to use a mainloop and a callback so new
112 timeout processing can run
113 Rewrite server to use a mainloop so message callback gets called
114 (ipc_loop_with_timeout): Add ipc_loop_with_timeout
115 (ipc_late_reply): Add ipc_late_reply
117 * opensync/ipc/opensync_queue.c (_timeout_dispatch): Restart timeout search at start of
118 pending list as list may have been modified while unlocked.
119 (_timeout_dispatch): Set message id in error message
120 (_timeout_dispatch): Undo change to restart timeout search (above)
122 2009-01-21 Graham Cobb <g+770@cobb.uk.net>
124 * opensync/ipc/opensync_queue.c (osync_queue_send_message_with_timeout): If this is
125 a reply, remove pending command
127 * opensync/client/opensync_client_proxy.c (_osync_client_proxy_hup_handler): treat
128 a queue error as a disconnect
129 (osync_client_proxy_spawn): cross-link command and reply queues
131 * opensync/client/opensync_client.c (_osync_client_handle_initialize): cross-link
132 command and reply queues
133 (_osync_client_hup_handler): treat a queue error as a disconnect
135 2009-01-20 Graham Cobb <g+770@cobb.uk.net>
137 * opensync/ipc/opensync_queue_internals.h: Add osync_queue_cross_link
139 * opensync/ipc/opensync_queue.c (osync_queue_cross_link): Cross-link command and reply queues
141 * opensync/ipc/opensync_queue.c (_osync_send_timeout_response):
142 Callback function for timeouts: send the timeout error reponse
143 (_incoming_dispatch): For incoming messages which have timeouts,
144 create a pending list entry
146 * opensync/ipc/opensync_queue_private.h: Add reply_queue for pointer to
147 queue used for replies to incoming messages, if any.
148 Add cmd_queue for pointer to queue used to store pending commands.
150 2009-01-19 Graham Cobb <g+770@cobb.uk.net>
152 * opensync/ipc/opensync_message.c: Add opensync_message_set/get_timeout
154 * opensync/ipc/opensync_message_internals.h: Add opensync_message_set/get_timeout
156 * opensync/ipc/opensync_message_private.h: Add timeout to message
158 2008-05-04 Graham Cobb <g+770@cobb.uk.net>
160 * opensync/helper/opensync_hashtable.c (osync_hashtable_get_deleted):
161 Reimplement change below to avoid local function declaration, which does not
162 work on suncc. Use user_data parameter on callback_check_deleted instead.
164 2008-05-03 Graham Cobb <g+770@cobb.uk.net>
166 * opensync/helper/opensync_hashtable.c (osync_hashtable_get_deleted):
167 Avoid use of g_hash_table_get_keys so code can be built using glib 2.12.
168 Uses g_hash_table_foreach with a callback routine instead.
170 2008-04-12 Daniel Gollub <dgollub@suse.de>
172 * tools/osyncplugin.c:
173 Full rewrite of osyncplugin to work with OpenSync 0.30 API
175 * tests/mock-plugin/mock_sync.c, tests/mock-plugin/mock_format.c:
176 Stripped entire error handling of mock-sync and mock-format for best
177 code coverage. Instead of error handling in testing code use
180 2008-04-10 Graham Cobb <g+770@cobb.uk.net>
182 * opensync/helper/opensync_hashtable.c (osync_hashtable_reset_reports): conditionalise g_hash_table_remove_all
183 on GLIB version 2.12 or later. Use g_hash_table_foreach_remove for earlier versions.
185 * ChangeLog: create a ChangeLog