1 |
|
---|
2 | DIM version 20r5 Release Notes
|
---|
3 |
|
---|
4 | Notes 1 and 2 for Unix Users only
|
---|
5 | NOTE 1: In order to "make" DIM two environment variables should be set:
|
---|
6 | OS = one of {HP-UX, AIX, OSF1, Solaris, SunOS, LynxOS, Linux, Darwin}
|
---|
7 | DIMDIR = the path name of DIM's top level directory
|
---|
8 | The user should then go to DIM's top level directory and do:
|
---|
9 | > source .setup
|
---|
10 | > gmake all
|
---|
11 | Or, if there is no support for C++ on the machine:
|
---|
12 | > gmake CPP=no all
|
---|
13 |
|
---|
14 | NOTE 2: The Name Server (Dns), DID, servers and clients (if running in
|
---|
15 | background) should be started whith the output redirected to a
|
---|
16 | logfile ex:
|
---|
17 | Dns </dev/null >& dns.log &
|
---|
18 |
|
---|
19 | NOTE 3: The Version Number service provided by servers is now set to 2005.
|
---|
20 |
|
---|
21 | 21/12/2012
|
---|
22 | Changes for version 2005:
|
---|
23 | - Moved the WebDID sources to the src directory and the VS settings to the Visual directory
|
---|
24 | - In the Multithreaded (the default) version of DIM, signals are not touched anymore.
|
---|
25 | Before they were masked/unmasked at every dim lock/unlock occurence.
|
---|
26 | - Fixes in WebDID:
|
---|
27 | - Now DIM nodes defined by an IP Address are shown properly (by IP Name)
|
---|
28 | - WebDID looks for the Javascript files in the same directory where its executable is
|
---|
29 | (independently of where it is started from)
|
---|
30 |
|
---|
31 |
|
---|
32 | 21/11/2012
|
---|
33 | Changes for version 2004:
|
---|
34 | - WebDid did not compile under SLC5, fixed.
|
---|
35 | - Removed several Compiler warnings under SLC5
|
---|
36 |
|
---|
37 |
|
---|
38 | 20/11/2012
|
---|
39 | Changes for version 2003:
|
---|
40 | - Added the project settings for Visual Studio 10 in the Visual directory
|
---|
41 | - Added a bin64 directory containing binaries for Windows7 (and 2008 R2) 64 bits
|
---|
42 | - Added a prototype webDid. in order to use it:
|
---|
43 | - In the same machine when the DIM DNS runs start <dim>/WebDid/webDid
|
---|
44 | - In any machine from where the DIM DNS is reacheable on your favorite Web browser use as URL:
|
---|
45 | http://<DIM DNS node name>:2500
|
---|
46 |
|
---|
47 |
|
---|
48 | 07/11/2012
|
---|
49 | Changes for version 2002:
|
---|
50 | - Still problems with size=0 "no link" parameters - hopefully fixed.
|
---|
51 |
|
---|
52 |
|
---|
53 | 07/11/2012
|
---|
54 | Changes for version 2001:
|
---|
55 | - First official release containing the Windows 64 bits fix.
|
---|
56 | - The changes in version v19r35 specifying the behaviour when giving a null pointer and size 0 as
|
---|
57 | "no link" parameters only worked well in "C", not in C++ callbacks - fixed.
|
---|
58 |
|
---|
59 |
|
---|
60 | 04/10/2012
|
---|
61 | Changes for version 19.39:
|
---|
62 | - Unfortunately Windows, unlike Linux, does not use LP64 convention for 64 bits,
|
---|
63 | i.e. the type long is a 32 bit variable (?!?!?!)
|
---|
64 | So created a dim_long type which can always hold a pointer
|
---|
65 |
|
---|
66 |
|
---|
67 | 09/08/2012
|
---|
68 | Changes for version 19.38:
|
---|
69 | - The timeout used by clients and servers to try to reconnect to a DNS was supposed to be random,
|
---|
70 | to avoid all processes retrying at the same time, but it wasn't - fixed.
|
---|
71 |
|
---|
72 |
|
---|
73 | 27/06/2012
|
---|
74 | Changes for version 19.37:
|
---|
75 | - DIM DNS crashed for servers with a task name bigger than 80 characters - Fixed.
|
---|
76 |
|
---|
77 |
|
---|
78 | 22/06/2012
|
---|
79 | Changes for version 19.36:
|
---|
80 | - The internal "DIS_DNS/KILL_SERVERS" command can now be used to pass a user defined exit_code to
|
---|
81 | the servers. The servers will get this exit_code in their exit_handler.
|
---|
82 | Although the exit_code passed to the "DIS_DNS/KILL_SERVERS" command is an integer, only the lower
|
---|
83 | 16 bits can be used, i.e. only these bits are passed to the servers.
|
---|
84 |
|
---|
85 |
|
---|
86 | 24/05/2012
|
---|
87 | Changes for version 19.35:
|
---|
88 | - Fixed the DimInfo() default constructor, now if the default constructor is called, it doesn't cause the
|
---|
89 | destructor to crash anymore.
|
---|
90 | - Made available to DimInfo, DimStampedInfo, DimUpdatedInfo and DimCurrentInfo the method:
|
---|
91 | - void subscribe(char *name, void *nolink, int nolinksize, int time, DimInfoHandler *handler)
|
---|
92 | Like this the default constructor can be called and then this method called later to subscribe
|
---|
93 | whenever needed.
|
---|
94 | - The behaviour of giving a null pointer and size 0 as "no link" parameters was not completely
|
---|
95 | defined. The user could get back either a null pointer or an "invalid" pointer in the callbacks.
|
---|
96 | This is now well-defined:
|
---|
97 | - If null pointer and size 0 is used at subscribe, the user will get null pointer and size 0 in the callback.
|
---|
98 | - If a negative size is passed at subscribe the callback is not called at all.
|
---|
99 |
|
---|
100 |
|
---|
101 | 03/05/2012
|
---|
102 | Changes for version 19.34:
|
---|
103 | - Changed back to dna_write_nowait() the message that the server sends to the client when removing
|
---|
104 | a service. This was causing clients not to reconnect ever again when the server removed services.
|
---|
105 | (because the client would get the info much before the DNS, so it would keep trying to reconnect
|
---|
106 | and failing even though the service or even the server didn't exist anymore, without asking the DNS)
|
---|
107 | - Changed the client in order to avoid the behaviour above, i.e. if sending the service request fails it
|
---|
108 | asks the DNS again.
|
---|
109 |
|
---|
110 |
|
---|
111 | 23/04/2012
|
---|
112 | Changes for version 19.33:
|
---|
113 | - A bug was introduced in v19r30. When trying to retry immediately, a dtq_start_timer(0)
|
---|
114 | was used (like for dna_write). This is not possible because the callback is not protected
|
---|
115 | by a DIM lock. Fixed. (in v19r32)
|
---|
116 | - Small tidy up in dic.c and protecting the move_to_xxx functions.
|
---|
117 | - When a server received an unsubscribe from the last subscribed service of a client it was closing the
|
---|
118 | connection to the client, this is not good because there could be commands being sent. In any case
|
---|
119 | it should be up to the client to close the connection - Fixed.
|
---|
120 | - dim_send_command now accepts a "-i" argument to send integer data (default is string)
|
---|
121 |
|
---|
122 |
|
---|
123 | 30/03/2012
|
---|
124 | Changes for version 19.31:
|
---|
125 | - changed dna_write to dna_write_nowait for servers when removing a service and for clients
|
---|
126 | when releasing and subscribing to a service. Dna_write cannot be used for the same connection
|
---|
127 | as dna_write_nowait as it will mingle the packets.
|
---|
128 | - Removed more compiler warnings.
|
---|
129 |
|
---|
130 |
|
---|
131 | 14/03/2012
|
---|
132 | Changes for version 19.30:
|
---|
133 | - Sometimes when trying to open a connection to a server the client could backoff for too
|
---|
134 | long (10 seconds), now it will retry immediately and then at increasing intervals.
|
---|
135 | - dim_stop() would sometimes not properly stop all threads if a new connection was received
|
---|
136 | in the mean time.
|
---|
137 | - The DimServerDns destructor could crash, fixed.
|
---|
138 | - Removed some compiler warnings about variables set but not used.
|
---|
139 | - Two new functions available:
|
---|
140 | - dim_set_listen_backlog(int size)
|
---|
141 | - int dim_get_listen_backlog()
|
---|
142 | - The DNS will set the listen_backlog to 1024 at startup, but the OS will truncate it to
|
---|
143 | a maximum limit (available in /proc/sys/net/core/somaxconn, linux default=128),
|
---|
144 | while for servers the constant SOMAXCONN is used.
|
---|
145 |
|
---|
146 |
|
---|
147 | 06/02/2012
|
---|
148 | Changes for version 19.28:
|
---|
149 | - Added more log messages when a "Write Timeout" occurs to know where it originated.
|
---|
150 | - A server could sometimes not release the connection in case of a "Write Timeout", and
|
---|
151 | then keep on timing out for each message on this connection - fixed.
|
---|
152 |
|
---|
153 |
|
---|
154 | 19/01/2012
|
---|
155 | Changes for version 19.27:
|
---|
156 | - Updated the DIM Makefiles for MacOSX (Darwin)
|
---|
157 | - Added New possibilities to change DIM timeouts:
|
---|
158 | - 2 New Environment variables:
|
---|
159 | - DIM_WRITE_TMOUT (default: 5)
|
---|
160 | - DIM_KEEPALIVE_TMOUT (default: 15)
|
---|
161 | - Same functionality as the functions:
|
---|
162 | - dim_set_write_timeout(int secs)
|
---|
163 | - int dim_get_write_timeout()
|
---|
164 | - dim_set_keepalive_timeout(int secs) //new
|
---|
165 | - int dim_get_keepalive_timeout() //new
|
---|
166 | - The functions have precedence over the environment variables.
|
---|
167 | - The server per client exit_handler functionality
|
---|
168 | (provided by dis_add_client_exit_handler()/dis_set_client_exit_handler())
|
---|
169 | wan not always working correctly (in case of write timeouts) - fixed.
|
---|
170 | - Changed the reporting of "Write Tiemout":
|
---|
171 | - Used to report only:
|
---|
172 | - "ERROR: Write Timeout, disconnecting from..."
|
---|
173 | - Now reports:
|
---|
174 | - "WARNING: Write Timeout, writing to ..."
|
---|
175 | - If it disconnects: "ERROR: Write Timeout, disconnecting from ..."
|
---|
176 | - If it reconnects later: "INFO: Re-connected to ..."
|
---|
177 |
|
---|
178 |
|
---|
179 | 14/09/2011
|
---|
180 | Changes for version 19.26:
|
---|
181 | - In the notes for version 19.08 there is the following:
|
---|
182 | - Since version v18r4 where dim_wait() was modified, dim_wait could hang in windows if
|
---|
183 | the wake_up event was triggered before dim_wait was called. Could affect smi++. Fixed.
|
---|
184 | - Amasingly enough this seems also to be the case for Linux, dim_wait could hang until there
|
---|
185 | was some new DIM activity, normally some timer firing... Fixed.
|
---|
186 | - The Linux DID now accepts an extra parameter: -dns=<dns_node_name>
|
---|
187 |
|
---|
188 | 01/09/2011
|
---|
189 | Changes for version 19.25:
|
---|
190 | - When a Client was releasing a service "at the same time" as the server was deleting the service,
|
---|
191 | The Connection could be released by mistake - fixed.
|
---|
192 | - The SERVICE_LIST service could be updated with an empty string if there were two consecutive
|
---|
193 | dis_start_serving() - fixed.
|
---|
194 |
|
---|
195 |
|
---|
196 | 08/08/2011
|
---|
197 | Changes for version 19.24:
|
---|
198 | - The funtion DimInfo::getFormat() never return the correct format of a service, if the first time
|
---|
199 | it was called, the service was not available, i.e. when called inside a "no_link" callback - Fixed.
|
---|
200 | - Deleting the last service of a server or stopping a server could generate "Invalid Service Id"
|
---|
201 | messages from the service that updates DID - Fixed.
|
---|
202 |
|
---|
203 |
|
---|
204 | 15/07/2011
|
---|
205 | Changes for version 19.23:
|
---|
206 | - The new functions:
|
---|
207 | int DimClient::inCallback()
|
---|
208 | int DimServer::inCallback()
|
---|
209 | Can be used to find out if the function is being called in the context of a DIM callback
|
---|
210 | handler (they return 1 if yes, 0 if no).
|
---|
211 | - There was no way to "remove" an errorHandler or exitHandler in C++.
|
---|
212 | Now the following functions accept 0 as parameter:
|
---|
213 | DimClient::addErrorHandler(0)
|
---|
214 | DimServer::addErrorHandler(0)
|
---|
215 | DimServer::addExitHandler(0)
|
---|
216 | DimServer::addClientExitHandler(0)
|
---|
217 | In order to remove them.
|
---|
218 | - The Windows Visual Studio Manifest file distributed since version v19r19 was wrong, so the latest
|
---|
219 | DIM versions did not work on Windows machines without Visual Studio 8 installed - Fixed.
|
---|
220 |
|
---|
221 |
|
---|
222 | 21/06/2011
|
---|
223 | Changes for version 19.22:
|
---|
224 | - DIM servers would hang when tring to exit due to "Services already declared", if the user
|
---|
225 | exitHandler() didn't directly call exit (instead tried to exit later in the main program).
|
---|
226 | Fixed.
|
---|
227 | - Servers accept now also 'B' or 'V' as format, they are both equivalent to 'C'.
|
---|
228 | - In Linux when a server printed "Write timeout, disconecting from XXX", it didn't always
|
---|
229 | disconnect properly, so the client would not always reconnect afterwards. Fixed.
|
---|
230 |
|
---|
231 |
|
---|
232 | 31/05/2011
|
---|
233 | Changes for version 19.21:
|
---|
234 | - Fixed a bug in DimRpcInfo: the timer for the timeout was started too late and sometimes the
|
---|
235 | RPC data was received in the meantime, so the timer was never stopped.
|
---|
236 |
|
---|
237 |
|
---|
238 | 04/05/2011
|
---|
239 | Changes for version 19.20:
|
---|
240 | - Fixed a bug added in v19r18: The <server_name>/SERVICE_LIST was no longer reporting correctly
|
---|
241 | the disappearence of services (by a "-<service_name>" ). Fixed.
|
---|
242 |
|
---|
243 |
|
---|
244 | 27/04/2011
|
---|
245 | Changes for version 19.19:
|
---|
246 | - Fixed a very very old (horrible) bug in dis.c and dns.c: there was a hardwired malloc(8),
|
---|
247 | which was only ok for 32 bit machines. It's amazing this didn't bring more trouble...
|
---|
248 |
|
---|
249 |
|
---|
250 | 07/04/2011
|
---|
251 | Changes for version 19.18:
|
---|
252 | - The standard server service <server_name>/SERVICE_LIST had problems reporting the correct
|
---|
253 | information when used by several clients in paralel - fixed.
|
---|
254 |
|
---|
255 |
|
---|
256 | 11/03/2011
|
---|
257 | Changes for version 19.17:
|
---|
258 | - The TCPIP "listen" backlog for a server was increased for all servers (including the DNS)
|
---|
259 | from 16 to the constant SOMAXCONN (128 on Linux at the moment, 200 on Windows ?)
|
---|
260 | - After a "fork" the DIM initialization sequence guided by semaphores was not correctly
|
---|
261 | handled, this made the forked children hang and not respond to DIM anymore - fixed.
|
---|
262 |
|
---|
263 |
|
---|
264 | 23/02/2011
|
---|
265 | Changes for version 19.16:
|
---|
266 | - DimServer::stop() did not correctly clear the ServerName - fixed.
|
---|
267 | - The Linux DID now prints the DNS it is connected to in the title bar.
|
---|
268 |
|
---|
269 |
|
---|
270 | 20/12/2010
|
---|
271 | Changes for version 19.15:
|
---|
272 | - Still fixing dis_stop_serving():
|
---|
273 | - The DNS sometimes gets a remove service message from a server, after the server has
|
---|
274 | closed the connection, this was not handled properly - fixed.
|
---|
275 | - Fixed yet another detail (variable not cleared) in the thread handling at dis_stop_serving().
|
---|
276 | - dtq.c now clears all timer_queues at dis_stop_serving()
|
---|
277 | - Added some protections in case of closed connections.
|
---|
278 |
|
---|
279 |
|
---|
280 | 10/12/2010
|
---|
281 | Changes for version 19.14:
|
---|
282 | - Still fixing dis_stop_serving():
|
---|
283 | - Adedd pthread_join in linux to wait for threads to die
|
---|
284 | - the following dis_start_serving() would not reconnect to the DNS if the DNS connection
|
---|
285 | was pending (i.e. the DNS was stopped or restarted)
|
---|
286 |
|
---|
287 |
|
---|
288 | 06/12/2010
|
---|
289 | Changes for version 19.13:
|
---|
290 | - Fixed a few compiler warnings in dis.c
|
---|
291 | - Added #ifndef PXI around some Windows setPriority calls
|
---|
292 | - dis_stop_serving() did not completely clean-up DIM so that another dis_start_serving()
|
---|
293 | could be done properly after for example a "fork()". Fixed.
|
---|
294 |
|
---|
295 |
|
---|
296 | 20/09/2010
|
---|
297 | Changes for version 19.12:
|
---|
298 | - Fixed a bug added when removing warnings in v19r10 (dis.c and dns.c).
|
---|
299 |
|
---|
300 |
|
---|
301 | 07/06/2010
|
---|
302 | Changes for version 19.11:
|
---|
303 | - Added some protections in update_service() in order to try to solve a DIP issue.
|
---|
304 | (related to very frequent updates of the same service in different threads)
|
---|
305 | - Added the possibility of defining timeouts for:
|
---|
306 | - DimBrowser::getServices
|
---|
307 | - DimBrowser::getServers
|
---|
308 | - DimBrowser::getServerServices
|
---|
309 | - DimBrowser::getServerClients
|
---|
310 | - Added the possibility of retrieving the time a command arrived:
|
---|
311 | - int dis_get_timestamp(int service_id, int *secs, int *millisecs) in C
|
---|
312 | - int DimCommand::getTimestamp() and int DimCommand::getTimestampMillisecs() in C++
|
---|
313 | - Added a "const" keyword to the "char *format" parameter in the constructors of
|
---|
314 | - DimService and DimCommand
|
---|
315 | - Added a call DimCommand::hasNext(), can be used when commands are queued.
|
---|
316 | - Fixed a memory leak when using DimService::setData and then dynamically deleting the
|
---|
317 | DimService
|
---|
318 |
|
---|
319 |
|
---|
320 | 17/02/2010
|
---|
321 | Changes for version 19.10:
|
---|
322 | - Fixed a bug in the DNS related to the latest change (browsing for a single service name)
|
---|
323 | The DNS could crash when killing a server.
|
---|
324 | - Removed some compilation warnings
|
---|
325 |
|
---|
326 |
|
---|
327 | 04/01/2010
|
---|
328 | Changes for version 19.09:
|
---|
329 | - Created two new functions: dis_set_debug_on() and dis_set_debug_off(), these
|
---|
330 | enable or disable printing a message per service update
|
---|
331 | - Tried to protect against:
|
---|
332 | - a service being deleted from the server while it is being updated
|
---|
333 | - a client unsubscribing from a service while it is being updated.
|
---|
334 | - Optimized the DNS when browsing for a service search pattern without wildcards
|
---|
335 | (i.e. browsing for a single service name)
|
---|
336 |
|
---|
337 |
|
---|
338 | 13/11/2009
|
---|
339 | Changes for version 19.08:
|
---|
340 | - Since version v18r4 where dim_wait() was modified, dim_wait could hang in windows if
|
---|
341 | the wake_up event was triggered before dim_wait was called. Could affect smi++.
|
---|
342 | Fixed.
|
---|
343 | - Fixed a compilation bug in dis.c that affected some platforms.
|
---|
344 |
|
---|
345 |
|
---|
346 | 30/10/2009
|
---|
347 | Changes for version 19.07:
|
---|
348 | - Some more bugs related to being able to publish to more that one DNS fixed.
|
---|
349 |
|
---|
350 |
|
---|
351 | 28/10/2009
|
---|
352 | Changes for version 19.06:
|
---|
353 | - When opening DNS connections, when the DNS is not there, from a process that is at the
|
---|
354 | same time a client and a server only one pending connection was used now two separate
|
---|
355 | ones are created.
|
---|
356 | - Tried to fix a few more problems related to dis_stop_serving...
|
---|
357 |
|
---|
358 |
|
---|
359 | 26/10/2009
|
---|
360 | Changes for version 19.05:
|
---|
361 | - dis_stop_serving had stopped working in version 19.4. So all servers that undeclared
|
---|
362 | all services and then tried to re-declare new ones would fail (corrupted server name).
|
---|
363 | Affected in particular the DimBridge
|
---|
364 |
|
---|
365 |
|
---|
366 | 27/08/2009
|
---|
367 | Changes for version 19.04:
|
---|
368 | - Added the following functions:
|
---|
369 | Server part:
|
---|
370 | C - dis_get_n_clients(int service_id)
|
---|
371 | C++ - int DimService::getNClients()
|
---|
372 | Client part (C++ only):
|
---|
373 | DimClient::setNoDataCopy()
|
---|
374 | This will prevent any data copy in the client and the user should make
|
---|
375 | sure that the data received from DIM is not used outside the callback
|
---|
376 | in order to benefir from this feature.
|
---|
377 | - Fixed the Java DIM Jar file, it was wrong in the previous version.
|
---|
378 |
|
---|
379 |
|
---|
380 | 31/07/2009
|
---|
381 | Changes for version 19.03:
|
---|
382 | - Removed some more compilation warnings.
|
---|
383 | - Fixed a bug in the DNS. The mechanism for retrieving the "SERVER_LIST" when
|
---|
384 | some server names were longer that 35 characters was very slow.
|
---|
385 |
|
---|
386 |
|
---|
387 | 06/07/2009
|
---|
388 | Changes for version 19.02:
|
---|
389 | - Fixed a bug in the server part handling of RPCs, it created a memory leak.
|
---|
390 | It was using a separate thread to handle timeouts and there is no safe way to
|
---|
391 | kill a thread from outside. Fixed.
|
---|
392 | - the function dim_stop_thread() is now obsolete.
|
---|
393 | - Added the possibility to change the send and receive buffer sizes:
|
---|
394 | - int dim_set_write_buffer_size(int size)
|
---|
395 | - int dim_get_write_buffer_size()
|
---|
396 | - int dim_set_read_buffer_size(int size)
|
---|
397 | - int dim_get_read_buffer_size()
|
---|
398 | The default (and minimum) is 16384 bytes.
|
---|
399 | These calls should be done before any other DIM calls.
|
---|
400 | - Fixed a bug in the Java DimBrowser class (the format was not returned correctly)
|
---|
401 |
|
---|
402 | 04/05/2009
|
---|
403 | Changes for version 19.01:
|
---|
404 | - A server can now publish to more than one DNS.
|
---|
405 | To use an extra DNS:
|
---|
406 | - in "C":
|
---|
407 | long dnsid;
|
---|
408 | char extra_dns[128];
|
---|
409 | ...
|
---|
410 | dim_get_env_var("EXTRA_DNS_NODE", extra_dns, sizeof(extra_dns));
|
---|
411 | dnsid = dis_add_dns(extra_dns,0);
|
---|
412 | sprintf(name1,"NewService%d",i);
|
---|
413 | dis_add_service_dns(dnsid, name1, "I", &NewData, sizeof(NewData),
|
---|
414 | (void *)0, 0 );
|
---|
415 | dis_start_serving_dns(dnsid, "xx_new");
|
---|
416 |
|
---|
417 | - in C++:
|
---|
418 | DimServerDns *newDns;
|
---|
419 | char *extraDns = 0;
|
---|
420 | DimService *new_servint;
|
---|
421 | ...
|
---|
422 | extraDns = DimUtil::getEnvVar("EXTRA_DNS_NODE");
|
---|
423 | if(extraDns)
|
---|
424 | newDns = new DimServerDns(extraDns, 0, "new_TEST");
|
---|
425 | ...
|
---|
426 | if(extraDns)
|
---|
427 | new_servint = new DimService(newDns, "new_TEST/INTVAL",ival);
|
---|
428 |
|
---|
429 | - Removed all warnings from DIM sources so that it can be compiled with -Wall -Wextra on Linux
|
---|
430 | - Changed the makefiles so that the default on Linux is now 64 bits.
|
---|
431 | - The flag 32BITS=yes can be added in order to generate 32 bit code
|
---|
432 |
|
---|
433 |
|
---|
434 | 26/02/2009
|
---|
435 | Changes for version 18.05:
|
---|
436 | - Made the callback for "DIS_DNS/SERVER_LIST" uninterruptible, so that two clients subscribing
|
---|
437 | would not get mixed up answers.
|
---|
438 | - The same for "<server>/SERVICE_LIST"
|
---|
439 | - Tryied to fix a DNS crash, introduced in v18r4 by releasing the connection when "informing clients".
|
---|
440 | - removed some "//" comments in "C"
|
---|
441 |
|
---|
442 |
|
---|
443 | 20/02/2009
|
---|
444 | Changes for version 18.04:
|
---|
445 | - Changed the dim_wait() mechanism, so that it works for several threads in parallel:
|
---|
446 | - On Linux it was based on POSIX semaphores now it is based on POSIX "condition
|
---|
447 | variables"
|
---|
448 | - On Windows it was based on "Auto Reset Events" now it uses "Manual Resel "Events"
|
---|
449 | - The DNS should now correctly update the "DIS_DNS/SERVER_LIST" service. It used to report
|
---|
450 | a new server, even when the services already existed and the server was killed by the DNS.
|
---|
451 | (And never report it killed). It also didn't report correctly when a server went out of "ERROR"
|
---|
452 | (this is reported as a "+" as for a new server).
|
---|
453 |
|
---|
454 |
|
---|
455 | 05/02/2009
|
---|
456 | Changes for version 18.03:
|
---|
457 | - The list of registered services in a server could get corrupted in some rare cases
|
---|
458 | making the server crash - fixed.
|
---|
459 | - If the DNS couldn't talk to a client it could sometimes hang - fixed.
|
---|
460 | - Java client modifications:
|
---|
461 | - DimUpdatedInfo was not working correctly - fixed in dim_jni.c.
|
---|
462 | - Implemented DimRpcInfo
|
---|
463 | - Changed the DimBroser class to use DimRpcInfo.
|
---|
464 | - Added a jdim.jar file in the jdim/classes directory of the DIM distribution
|
---|
465 |
|
---|
466 |
|
---|
467 | 15/01/2009
|
---|
468 | Changes for version 18.02:
|
---|
469 | - Added the following functions:
|
---|
470 | - C++ Client
|
---|
471 | - int DimClient.getServerPid()
|
---|
472 | - Java Client
|
---|
473 | - int DimClient.getServerPid()
|
---|
474 | - String[] DimBrowser.getServers()
|
---|
475 | - String DimBrowser.getServerNode(String server)
|
---|
476 | - int DimBrowser.getServerPid(String server)
|
---|
477 |
|
---|
478 |
|
---|
479 | 09/01/2009
|
---|
480 | Changes for version 18.01:
|
---|
481 | - Added in the distribution the Visual Studio 8 dlls and manifest. Otherwise
|
---|
482 | it would not work on most PCs.
|
---|
483 |
|
---|
484 |
|
---|
485 | 03/12/2008
|
---|
486 | Changes for version 18.00:
|
---|
487 | - The Windows execulables and libraries are now built using Visual Studio 8
|
---|
488 | - Some changes added by GSI mainly in the Java Native Interface
|
---|
489 |
|
---|
490 |
|
---|
491 | 06/11/2008
|
---|
492 | Changes for version 17.12:
|
---|
493 | - Client functionality:
|
---|
494 | - Added a new function dic_stop(), to close anything related to DIM
|
---|
495 | for a client
|
---|
496 | - Added the function dic_get_server_pid(). Similar to dic_get_server().
|
---|
497 | Can be executed in a callback to retrieve the pid of the current server
|
---|
498 | - DimBrowser Class:
|
---|
499 | - DimBrowser::getServices() used to create and destroy the DimRpc connection
|
---|
500 | to the Dns every time it was called. This was heavy if called in a loop.
|
---|
501 | Now the connection is maintained until the DimBrowser itself is destroyed.
|
---|
502 | - A new method DimBrowser::getNextServer(char *&server, char *&node, int *pid)
|
---|
503 | has been created. similar to the previous one but returns also the server pid.
|
---|
504 | - DNS
|
---|
505 | - The DNS was still doing some blocking write calls to servers or clients.
|
---|
506 | Now all write calls have a timeout and can not block forever.
|
---|
507 | - Linux DID
|
---|
508 | - The "Subscribe" button was subscribing to services with update rate of 10 seconds.
|
---|
509 | This was misleading, the users could think the server was calling update_service
|
---|
510 | when it wasn't.
|
---|
511 | Now there are two Subscribe buttons ("on change" or "Update rate of 10 seconds").
|
---|
512 | - DimDridge
|
---|
513 | - Accepts an extra flag "-copy" which provokes an internal copy of the data.
|
---|
514 |
|
---|
515 |
|
---|
516 | 08/09/2008
|
---|
517 | Changes for version 17.11:
|
---|
518 | - Some DIM Processes, servers or clients could enter a loop taking 100 % CPU
|
---|
519 | time in some rare occasions, fixed.
|
---|
520 | - Added some protections when removing services in the DimBridge.
|
---|
521 |
|
---|
522 |
|
---|
523 | 30/08/2008
|
---|
524 | Changes for version 17.10:
|
---|
525 | - Some DIM Processes, servers or clients would not reconnect when the DNS was
|
---|
526 | restarted. Fixed two cause:
|
---|
527 | - Some processes in Linux were stuck reading from the DNS socket
|
---|
528 | - Some others "forgot" to set a timer under very special conditions
|
---|
529 | - Changed some of the DNS debug messages to be more explicit.
|
---|
530 |
|
---|
531 |
|
---|
532 | 21/07/2008
|
---|
533 | Changes for version 17.09:
|
---|
534 | - DIM error messages were not being flushed when the output was redirected
|
---|
535 | to a logfile, fixed.
|
---|
536 |
|
---|
537 |
|
---|
538 | 18/07/2008
|
---|
539 | Changes for version 17.08:
|
---|
540 | - Sometimes a server or a client could do a read on a sockect that had just
|
---|
541 | been closed which left them hanging forever - fixed.
|
---|
542 |
|
---|
543 |
|
---|
544 | 01/07/2008
|
---|
545 | Changes for version 17.07:
|
---|
546 | - The DimTimer was sometimes not started when the constructor was called
|
---|
547 | with a time argument.
|
---|
548 | - Clients could not connect to more than 1024 servers - fixed.
|
---|
549 | (if the machine allows more than 1024 connections)
|
---|
550 |
|
---|
551 |
|
---|
552 | 30/06/2008
|
---|
553 | Changes for version 17.06:
|
---|
554 | - Corrected the makefile for Darwin, now the number of accepted connections is
|
---|
555 | increased to 8192 only for Linux.
|
---|
556 | - Fixed a bug in the DimTimer, it used to accept to be re-started, but then crashed
|
---|
557 | at destruction time if not stopped the same number of times. Now it can not be
|
---|
558 | re-started.
|
---|
559 | - The Dns used to ask servers to re-register at regular intervals when they were not
|
---|
560 | sending their watchdog messages (i.e. they were in "ERROR", red in DID). Now the
|
---|
561 | DNS only asks once (unless they answer). This could cause the DNS to hang if
|
---|
562 | servers were in ERROR for a long time.
|
---|
563 | - The Dns now accepts a command line parameter: -d to print debug messages.
|
---|
564 | - The clients were not handling properly the case when they could contact the DNS
|
---|
565 | but then they could not contact the server that the DNS gave them (either because
|
---|
566 | of a firewall or because the server run on an inaccessible network). In this case
|
---|
567 | the clients would timeout trying to contact the server for each service and kept
|
---|
568 | asking the DNS the server coordinates over and over again. Now the clients keep
|
---|
569 | a list on unreacheable servers, so they don't try to contact the server for each
|
---|
570 | service and only ask the DNS again with an increasing interval that goes from 10
|
---|
571 | seconds to 2 minutes maximum.
|
---|
572 | - The server now issues an error message if the format string is too long.
|
---|
573 | - Linux DID
|
---|
574 | - Removed the command "Kill ALL Servers", it was too dangerous
|
---|
575 | - Now the list of nodes in "View Servers by Node" is in alphabetical order and
|
---|
576 | in lowercase.
|
---|
577 |
|
---|
578 |
|
---|
579 | 30/04/2008
|
---|
580 | Changes for version 17.05:
|
---|
581 | - In Linux in some cases a SIGPIPE was generated. Normally the DIM library sets
|
---|
582 | the behaviour of SIGPIPE to ignored, but if another library or main program
|
---|
583 | changes the SIGPIPE behaviour, then the application could exit when the SIGPIPE
|
---|
584 | was generated. Fixed - on Linux now the function send with flag MSG_NOSIGNAL
|
---|
585 | is used in oder to avoid generating SIGPIPE.
|
---|
586 |
|
---|
587 |
|
---|
588 |
|
---|
589 | 4/04/2008
|
---|
590 | Changes for version 17.04:
|
---|
591 | - Sometimes processes (servers or clients) would hang when the DNS was restarted.
|
---|
592 | This was due to a strange (Windows?) feature, by which a connect could succeed
|
---|
593 | after a connection was closed (and reported) on the other side. Fixed.
|
---|
594 |
|
---|
595 |
|
---|
596 |
|
---|
597 | 27/03/2008
|
---|
598 | Changes for version 17.03:
|
---|
599 | - Can now make DID for 64 bits by making DIM using:
|
---|
600 | gmake X64=yes all
|
---|
601 | - Increased the size of the Hash tables for the servers and the DNS.
|
---|
602 |
|
---|
603 |
|
---|
604 |
|
---|
605 | 20/02/2008
|
---|
606 | Changes for version 17.02:
|
---|
607 | - Fixed the Java DimTimer - stop() didn't work
|
---|
608 | Required changing dim_jni.c as well as the java part
|
---|
609 | - Fixed DIM for Darwin - had stopped working
|
---|
610 |
|
---|
611 |
|
---|
612 |
|
---|
613 | 20/01/2008
|
---|
614 | Changes for version 17.01:
|
---|
615 | - The Java API now works on 64 bit machines, Thanks to Joern Adamczewski.
|
---|
616 | Please use:
|
---|
617 | gmake JDIM=yes all
|
---|
618 | - Linux executables are now compiled/linked on slc4 (32 bits).
|
---|
619 | - Big changes in the DimRpcs both client and server part. Tere were bugs
|
---|
620 | related to the handling of timeouts.
|
---|
621 | Unfortunatelly all applications using RPCs need to be re-linked.
|
---|
622 |
|
---|
623 |
|
---|
624 |
|
---|
625 | -----------------------------------------------------------------------------------------
|
---|
626 | Previous version history:
|
---|
627 |
|
---|
628 | 07/12/2007
|
---|
629 | Changes for version 16.14:
|
---|
630 | - Now by default All DIM processes are ready to accept up to 8192 connections, both
|
---|
631 | in Linux and Windows. Although in Linux for this to be effective the machine system
|
---|
632 | limits must allow more than 1024 descriptors/open files per process.
|
---|
633 | - Fixed a little memory leak in tokenstring.cxx
|
---|
634 | - And a little compilation bug for some platforms in tcpip.c
|
---|
635 |
|
---|
636 |
|
---|
637 | 15/05/2007
|
---|
638 | Changes for version 16.13:
|
---|
639 | - If DIM_HOST_NODE is defined when starting up a server, a DIM client will now try
|
---|
640 | two network interfaces in order to talk to that server and only give up if they both
|
---|
641 | fail. First it will try the ip name or ip address specified by the server using
|
---|
642 | DIM_HOST_NODE, if that fails it will try the ip address of the default interface
|
---|
643 | retrieved by the server using gethostname (and gethostbyname).
|
---|
644 | The changes basically affect the case in which the DIM_HOST_NODE given to the servers
|
---|
645 | is specified as IP address instad of an IP name. Otherwise this mechanism was already
|
---|
646 | working.
|
---|
647 |
|
---|
648 |
|
---|
649 | 3/05/2007
|
---|
650 | Changes for version 16.12:
|
---|
651 | - The Java version did not exit properly when main() terminated - fixed.
|
---|
652 |
|
---|
653 |
|
---|
654 | 25/04/2007
|
---|
655 | Changes for version 16.11:
|
---|
656 | - On Linux the timeout to detect a lost connections (unplugged ethernet cable
|
---|
657 | or machine reboot) was too long, around 15 minutes - Fixed.
|
---|
658 | On Linux the KEEPALIVE feature is now used instead of a regular socket write,
|
---|
659 | all other platforms should work as before.
|
---|
660 |
|
---|
661 |
|
---|
662 | 21/02/2007
|
---|
663 | Changes for version 16.10:
|
---|
664 | - Found a bug in dis_stop_serving: one socket connection was not closed - fixed.
|
---|
665 | - Implemented a new environment variable for the DNS: DIM_DNS_ACCEPTED_NODES
|
---|
666 | Can receive a list on nodes or domains separated by commas.
|
---|
667 | If the DNS receives a connection from a node not in this list, it will
|
---|
668 | reject it and kill the server or client requesting it.
|
---|
669 | - Fixed some C++ warnings.
|
---|
670 |
|
---|
671 |
|
---|
672 | 19/01/2007
|
---|
673 | Changes for version 16.9:
|
---|
674 | - The modifications done in version 16.8 have introduced a bug:
|
---|
675 | - DIM servers would not behave properly (exit) when receiving a kill command
|
---|
676 | from the DNS (for duplicated services, not allowed host names or manual "kill")
|
---|
677 | This is now fixed.
|
---|
678 |
|
---|
679 |
|
---|
680 | 30/10/2006
|
---|
681 | Changes for version 16.8:
|
---|
682 | - Modified dis_stop_serving() and DimServer::stop() to completely stop DIM:
|
---|
683 | - Stop also the DIM threads.
|
---|
684 | - Release all allocated memory
|
---|
685 | - Allow a different port number when re-starting.
|
---|
686 |
|
---|
687 |
|
---|
688 | 11/07/2006
|
---|
689 | Changes for version 16.7:
|
---|
690 | - Prepared for increasing the number of open connections per process
|
---|
691 | (On Linux still requires changing some parameters and recompiling the Dns)
|
---|
692 | - Fixed one error and several warnings for gcc 4.
|
---|
693 |
|
---|
694 |
|
---|
695 | 11/05/2006
|
---|
696 | Changes for version 16.6:
|
---|
697 | - Sometimes a server or client would crash while exiting if the DNS was not running.
|
---|
698 | Fixed.
|
---|
699 | - Fixed the reporting of some ERROR messages on Windows (used to report error "0")
|
---|
700 | - Allowed dim_send_command to receive instead of -dns <node_name>
|
---|
701 | -dns <node_name>[:<port_number>]
|
---|
702 |
|
---|
703 |
|
---|
704 | 01/05/2006
|
---|
705 | Changes for version 16.5:
|
---|
706 | - Big Spring Cleanup. Removed most warnings. Can now be compiled on
|
---|
707 | Windows with Warning Level 3 and on Linux with -Wall
|
---|
708 | (still not working for -ansi -pedantic...)
|
---|
709 | - When trying to access a server in a different network (i.e. not reacheable)
|
---|
710 | a client (for example DID) would take very very long to timeout - fixed.
|
---|
711 | - Added two new sets of functions that allow setting the DIM_DNS_NODE separately
|
---|
712 | for a server and a client in the same process:
|
---|
713 | - int dis_set_dns_node(char *node)
|
---|
714 | - int dis_get_dns_node(char *node)
|
---|
715 | - int dis_set_dns_port(int port)
|
---|
716 | - int dis_get_dns_port()
|
---|
717 |
|
---|
718 | - int dic_set_dns_node(char *node)
|
---|
719 | - int dic_get_dns_node(char *node)
|
---|
720 | - int dic_set_dns_port(int port)
|
---|
721 | - int dic_get_dns_port()
|
---|
722 | These routines should be used instead of the equivalent ones starting with "dim_"
|
---|
723 | since these set the same DIM_DNS_NODE/port for both Server and client parts of a
|
---|
724 | process.
|
---|
725 | - Adapted the C++ equivalents (DimClient::setDnsNode, etc. and DimServer::setDnsNode,
|
---|
726 | etc.) to use the new routines, so they are now independent.
|
---|
727 | Adapted also the Java equivalents.
|
---|
728 | - Fixed DimBridge to use the new routines.
|
---|
729 | - Fixed a bug in DID that made it crash sometimes at startup (and also when the DNS
|
---|
730 | restarted)!
|
---|
731 | - Found some very interesting features of DIM:
|
---|
732 | - In a node with two ethernet interfaces (so connected to two networks):
|
---|
733 | - The DNS will answer to servers and client on both networks, only its server
|
---|
734 | part - DIS_DNS (the one that answers to DID and DimBrowser requests) would
|
---|
735 | in principle answer only to one of the networks (in principle the default
|
---|
736 | interface* but can be changed by setting the environment variable "DIM_HOST_NODE").
|
---|
737 | - But, in fact, if the DNS or any server is started with the environment variable
|
---|
738 | DIM_HOST_NODE set to the interface that is not the default* one. Than both the
|
---|
739 | DNS (including the server part) and the DIM servers will be accessible from both
|
---|
740 | networks. For example DID will work fine on both networks.
|
---|
741 | * The command "hostname" will return the name of the default network interface.
|
---|
742 |
|
---|
743 | Note: As a result of inserting new functions the DIM shared library entry points have
|
---|
744 | changed, so all DIM Servers/Clients should be relinked (in particular in Linux).
|
---|
745 |
|
---|
746 |
|
---|
747 | 20/04/2006
|
---|
748 | Changes for version 16.4:
|
---|
749 | - Optimized the DNS for providing the list or running servers dynamically
|
---|
750 | by subscribing to the service "DIS_DNS/SERVER_LIST"
|
---|
751 |
|
---|
752 |
|
---|
753 | 07/04/2006
|
---|
754 | Changes for version 16.3:
|
---|
755 | - Upgraded to work on LynxOS Version 4.
|
---|
756 | - Updated makefile for INTEL platform
|
---|
757 | - Updated some ifdefs based on the existence of __Lynx__
|
---|
758 |
|
---|
759 |
|
---|
760 | 10/03/2006
|
---|
761 | Changes for version 16.2:
|
---|
762 | - Increased the listen queue. To avoid "Connection Refused" messages from servers
|
---|
763 | or from the DNS.
|
---|
764 |
|
---|
765 |
|
---|
766 | 28/02/2006
|
---|
767 | Changes for version 16.1:
|
---|
768 | - Fixed the NO_THREADS option for LINUX, it had stopped working.
|
---|
769 | - DimInfo::getData() could return an invalid pointer if called before connecting
|
---|
770 | to the server (or discovering the server did not exist). Fixed
|
---|
771 | (it now returns 0 in this case).
|
---|
772 |
|
---|
773 |
|
---|
774 | 09/11/2005
|
---|
775 | Changes for version 16.0:
|
---|
776 | - Consolidated the new timer handling mechanism, should be much more precise.
|
---|
777 | - Fixed the RPC handling. Used to be based on timming assumptions.
|
---|
778 | Now uses a safe protocol to make sure the server is connected before sending
|
---|
779 | an RPC request.
|
---|
780 | - Included in the distribution some performance measurements and a benchmark
|
---|
781 | server and client. Sources in src/benchmark executables in /bin for windows
|
---|
782 | and /linux for linux.
|
---|
783 | Usage:
|
---|
784 | benchServer <message_size_in_bytes> <number_of_services>
|
---|
785 | benchClient
|
---|
786 | benchClient will run for a while and print the measurement results.
|
---|
787 |
|
---|
788 | Please check the Manual for more information at:
|
---|
789 | http://www.cern.ch/dim
|
---|