source: trunk/FACT++/dim/README_v20.txt@ 19114

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