source: trunk/FACT++/dim/README_v19.txt@ 11728

Last change on this file since 11728 was 11695, checked in by tbretz, 13 years ago
Updated from dim_v19r22 to dim_v19r23
File size: 24.2 KB
Line 
1
2 DIM version 19.23 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 1923.
20
2115/07/2011
22Changes for version 19.23:
23 - The new functions:
24 int DimClient::inCallback()
25 int DimServer::inCallback()
26 Can be used to find out if the function is being called in the context of a DIM callback
27 handler (they return 1 if yes, 0 if no).
28 - There was no way to "remove" an errorHandler or exitHandler in C++.
29 Now the following functions accept 0 as parameter:
30 DimClient::addErrorHandler(0)
31 DimServer::addErrorHandler(0)
32 DimServer::addExitHandler(0)
33 DimServer::addClientExitHandler(0)
34 In order to remove them.
35 - The Windows Visual Studio Manifest file distributed since version v19r19 was wrong, so the latest
36 DIM versions did not work on Windows machines without Visual Studio 8 installed - Fixed.
37
38
3921/06/2011
40Changes for version 19.22:
41 - DIM servers would hang when tring to exit due to "Services already declared", if the user
42 exitHandler() didn't directly call exit (instead tried to exit later in the main program).
43 Fixed.
44 - Servers accept now also 'B' or 'V' as format, they are both equivalent to 'C'.
45 - In Linux when a server printed "Write timeout, disconecting from XXX", it didn't always
46 disconnect properly, so the client would not always reconnect afterwards. Fixed.
47
48
4931/05/2011
50Changes for version 19.21:
51 - Fixed a bug in DimRpcInfo: the timer for the timeout was started too late and sometimes the
52 RPC data was received in the meantime, so the timer was never stopped.
53
54
5504/05/2011
56Changes for version 19.20:
57 - Fixed a bug added in v19r18: The <server_name>/SERVICE_LIST was no longer reporting correctly
58 the disappearence of services (by a "-<service_name>" ). Fixed.
59
60
6127/04/2011
62Changes for version 19.19:
63 - Fixed a very very old (horrible) bug in dis.c and dns.c: there was a hardwired malloc(8),
64 which was only ok for 32 bit machines. It's amazing this didn't bring more trouble...
65
66
6707/04/2011
68Changes for version 19.18:
69 - The standard server service <server_name>/SERVICE_LIST had problems reporting the correct
70 information when used by several clients in paralel - fixed.
71
72
7311/03/2011
74Changes for version 19.17:
75 - The TCPIP "listen" backlog for a server was increased for all servers (including the DNS)
76 from 16 to the constant SOMAXCONN (128 on Linux at the moment, 200 on Windows ?)
77 - After a "fork" the DIM initialization sequence guided by semaphores was not correctly
78 handled, this made the forked children hang and not respond to DIM anymore - fixed.
79
80
8123/02/2011
82Changes for version 19.16:
83 - DimServer::stop() did not correctly clear the ServerName - fixed.
84 - The Linux DID now prints the DNS it is connected to in the title bar.
85
86
8720/12/2010
88Changes for version 19.15:
89 - Still fixing dis_stop_serving():
90 - The DNS sometimes gets a remove service message from a server, after the server has
91 closed the connection, this was not handled properly - fixed.
92 - Fixed yet another detail (variable not cleared) in the thread handling at dis_stop_serving().
93 - dtq.c now clears all timer_queues at dis_stop_serving()
94 - Added some protections in case of closed connections.
95
96
9710/12/2010
98Changes for version 19.14:
99 - Still fixing dis_stop_serving():
100 - Adedd pthread_join in linux to wait for threads to die
101 - the following dis_start_serving() would not reconnect to the DNS if the DNS connection
102 was pending (i.e. the DNS was stopped or restarted)
103
104
10506/12/2010
106Changes for version 19.13:
107 - Fixed a few compiler warnings in dis.c
108 - Added #ifndef PXI around some Windows setPriority calls
109 - dis_stop_serving() did not completely clean-up DIM so that another dis_start_serving()
110 could be done properly after for example a "fork()". Fixed.
111
112
11320/09/2010
114Changes for version 19.12:
115 - Fixed a bug added when removing warnings in v19r10 (dis.c and dns.c).
116
117
11807/06/2010
119Changes for version 19.11:
120 - Added some protections in update_service() in order to try to solve a DIP issue.
121 (related to very frequent updates of the same service in different threads)
122 - Added the possibility of defining timeouts for:
123 - DimBrowser::getServices
124 - DimBrowser::getServers
125 - DimBrowser::getServerServices
126 - DimBrowser::getServerClients
127 - Added the possibility of retrieving the time a command arrived:
128 - int dis_get_timestamp(int service_id, int *secs, int *millisecs) in C
129 - int DimCommand::getTimestamp() and int DimCommand::getTimestampMillisecs() in C++
130 - Added a "const" keyword to the "char *format" parameter in the constructors of
131 - DimService and DimCommand
132 - Added a call DimCommand::hasNext(), can be used when commands are queued.
133 - Fixed a memory leak when using DimService::setData and then dynamically deleting the
134 DimService
135
136
13717/02/2010
138Changes for version 19.10:
139 - Fixed a bug in the DNS related to the latest change (browsing for a single service name)
140 The DNS could crash when killing a server.
141 - Removed some compilation warnings
142
143
14404/01/2010
145Changes for version 19.09:
146 - Created two new functions: dis_set_debug_on() and dis_set_debug_off(), these
147 enable or disable printing a message per service update
148 - Tried to protect against:
149 - a service being deleted from the server while it is being updated
150 - a client unsubscribing from a service while it is being updated.
151 - Optimized the DNS when browsing for a service search pattern without wildcards
152 (i.e. browsing for a single service name)
153
154
15513/11/2009
156Changes for version 19.08:
157 - Since version v18r4 where dim_wait() was modified, dim_wait could hang in windows if
158 the wake_up event was triggered before dim_wait was called. Could affect smi++.
159 Fixed.
160 - Fixed a compilation bug in dis.c that affected some platforms.
161
162
16330/10/2009
164Changes for version 19.07:
165 - Some more bugs related to being able to publish to more that one DNS fixed.
166
167
16828/10/2009
169Changes for version 19.06:
170 - When opening DNS connections, when the DNS is not there, from a process that is at the
171 same time a client and a server only one pending connection was used now two separate
172 ones are created.
173 - Tried to fix a few more problems related to dis_stop_serving...
174
175
17626/10/2009
177Changes for version 19.05:
178 - dis_stop_serving had stopped working in version 19.4. So all servers that undeclared
179 all services and then tried to re-declare new ones would fail (corrupted server name).
180 Affected in particular the DimBridge
181
182
18327/08/2009
184Changes for version 19.04:
185 - Added the following functions:
186 Server part:
187 C - dis_get_n_clients(int service_id)
188 C++ - int DimService::getNClients()
189 Client part (C++ only):
190 DimClient::setNoDataCopy()
191 This will prevent any data copy in the client and the user should make
192 sure that the data received from DIM is not used outside the callback
193 in order to benefir from this feature.
194 - Fixed the Java DIM Jar file, it was wrong in the previous version.
195
196
19731/07/2009
198Changes for version 19.03:
199 - Removed some more compilation warnings.
200 - Fixed a bug in the DNS. The mechanism for retrieving the "SERVER_LIST" when
201 some server names were longer that 35 characters was very slow.
202
203
20406/07/2009
205Changes for version 19.02:
206 - Fixed a bug in the server part handling of RPCs, it created a memory leak.
207 It was using a separate thread to handle timeouts and there is no safe way to
208 kill a thread from outside. Fixed.
209 - the function dim_stop_thread() is now obsolete.
210 - Added the possibility to change the send and receive buffer sizes:
211 - int dim_set_write_buffer_size(int size)
212 - int dim_get_write_buffer_size()
213 - int dim_set_read_buffer_size(int size)
214 - int dim_get_read_buffer_size()
215 The default (and minimum) is 16384 bytes.
216 These calls should be done before any other DIM calls.
217 - Fixed a bug in the Java DimBrowser class (the format was not returned correctly)
218
21904/05/2009
220Changes for version 19.01:
221 - A server can now publish to more than one DNS.
222 To use an extra DNS:
223 - in "C":
224 long dnsid;
225 char extra_dns[128];
226 ...
227 dim_get_env_var("EXTRA_DNS_NODE", extra_dns, sizeof(extra_dns));
228 dnsid = dis_add_dns(extra_dns,0);
229 sprintf(name1,"NewService%d",i);
230 dis_add_service_dns(dnsid, name1, "I", &NewData, sizeof(NewData),
231 (void *)0, 0 );
232 dis_start_serving_dns(dnsid, "xx_new");
233
234 - in C++:
235 DimServerDns *newDns;
236 char *extraDns = 0;
237 DimService *new_servint;
238 ...
239 extraDns = DimUtil::getEnvVar("EXTRA_DNS_NODE");
240 if(extraDns)
241 newDns = new DimServerDns(extraDns, 0, "new_TEST");
242 ...
243 if(extraDns)
244 new_servint = new DimService(newDns, "new_TEST/INTVAL",ival);
245
246 - Removed all warnings from DIM sources so that it can be compiled with -Wall -Wextra on Linux
247 - Changed the makefiles so that the default on Linux is now 64 bits.
248 - The flag 32BITS=yes can be added in order to generate 32 bit code
249
250
25126/02/2009
252Changes for version 18.05:
253 - Made the callback for "DIS_DNS/SERVER_LIST" uninterruptible, so that two clients subscribing
254 would not get mixed up answers.
255 - The same for "<server>/SERVICE_LIST"
256 - Tryied to fix a DNS crash, introduced in v18r4 by releasing the connection when "informing clients".
257 - removed some "//" comments in "C"
258
259
26020/02/2009
261Changes for version 18.04:
262 - Changed the dim_wait() mechanism, so that it works for several threads in parallel:
263 - On Linux it was based on POSIX semaphores now it is based on POSIX "condition
264 variables"
265 - On Windows it was based on "Auto Reset Events" now it uses "Manual Resel "Events"
266 - The DNS should now correctly update the "DIS_DNS/SERVER_LIST" service. It used to report
267 a new server, even when the services already existed and the server was killed by the DNS.
268 (And never report it killed). It also didn't report correctly when a server went out of "ERROR"
269 (this is reported as a "+" as for a new server).
270
271
27205/02/2009
273Changes for version 18.03:
274 - The list of registered services in a server could get corrupted in some rare cases
275 making the server crash - fixed.
276 - If the DNS couldn't talk to a client it could sometimes hang - fixed.
277 - Java client modifications:
278 - DimUpdatedInfo was not working correctly - fixed in dim_jni.c.
279 - Implemented DimRpcInfo
280 - Changed the DimBroser class to use DimRpcInfo.
281 - Added a jdim.jar file in the jdim/classes directory of the DIM distribution
282
283
28415/01/2009
285Changes for version 18.02:
286 - Added the following functions:
287 - C++ Client
288 - int DimClient.getServerPid()
289 - Java Client
290 - int DimClient.getServerPid()
291 - String[] DimBrowser.getServers()
292 - String DimBrowser.getServerNode(String server)
293 - int DimBrowser.getServerPid(String server)
294
295
29609/01/2009
297Changes for version 18.01:
298 - Added in the distribution the Visual Studio 8 dlls and manifest. Otherwise
299 it would not work on most PCs.
300
301
30203/12/2008
303Changes for version 18.00:
304 - The Windows execulables and libraries are now built using Visual Studio 8
305 - Some changes added by GSI mainly in the Java Native Interface
306
307
30806/11/2008
309Changes for version 17.12:
310 - Client functionality:
311 - Added a new function dic_stop(), to close anything related to DIM
312 for a client
313 - Added the function dic_get_server_pid(). Similar to dic_get_server().
314 Can be executed in a callback to retrieve the pid of the current server
315 - DimBrowser Class:
316 - DimBrowser::getServices() used to create and destroy the DimRpc connection
317 to the Dns every time it was called. This was heavy if called in a loop.
318 Now the connection is maintained until the DimBrowser itself is destroyed.
319 - A new method DimBrowser::getNextServer(char *&server, char *&node, int *pid)
320 has been created. similar to the previous one but returns also the server pid.
321 - DNS
322 - The DNS was still doing some blocking write calls to servers or clients.
323 Now all write calls have a timeout and can not block forever.
324 - Linux DID
325 - The "Subscribe" button was subscribing to services with update rate of 10 seconds.
326 This was misleading, the users could think the server was calling update_service
327 when it wasn't.
328 Now there are two Subscribe buttons ("on change" or "Update rate of 10 seconds").
329 - DimDridge
330 - Accepts an extra flag "-copy" which provokes an internal copy of the data.
331
332
33308/09/2008
334Changes for version 17.11:
335 - Some DIM Processes, servers or clients could enter a loop taking 100 % CPU
336 time in some rare occasions, fixed.
337 - Added some protections when removing services in the DimBridge.
338
339
34030/08/2008
341Changes for version 17.10:
342 - Some DIM Processes, servers or clients would not reconnect when the DNS was
343 restarted. Fixed two cause:
344 - Some processes in Linux were stuck reading from the DNS socket
345 - Some others "forgot" to set a timer under very special conditions
346 - Changed some of the DNS debug messages to be more explicit.
347
348
34921/07/2008
350Changes for version 17.09:
351 - DIM error messages were not being flushed when the output was redirected
352 to a logfile, fixed.
353
354
35518/07/2008
356Changes for version 17.08:
357 - Sometimes a server or a client could do a read on a sockect that had just
358 been closed which left them hanging forever - fixed.
359
360
36101/07/2008
362Changes for version 17.07:
363 - The DimTimer was sometimes not started when the constructor was called
364 with a time argument.
365 - Clients could not connect to more than 1024 servers - fixed.
366 (if the machine allows more than 1024 connections)
367
368
36930/06/2008
370Changes for version 17.06:
371 - Corrected the makefile for Darwin, now the number of accepted connections is
372 increased to 8192 only for Linux.
373 - Fixed a bug in the DimTimer, it used to accept to be re-started, but then crashed
374 at destruction time if not stopped the same number of times. Now it can not be
375 re-started.
376 - The Dns used to ask servers to re-register at regular intervals when they were not
377 sending their watchdog messages (i.e. they were in "ERROR", red in DID). Now the
378 DNS only asks once (unless they answer). This could cause the DNS to hang if
379 servers were in ERROR for a long time.
380 - The Dns now accepts a command line parameter: -d to print debug messages.
381 - The clients were not handling properly the case when they could contact the DNS
382 but then they could not contact the server that the DNS gave them (either because
383 of a firewall or because the server run on an inaccessible network). In this case
384 the clients would timeout trying to contact the server for each service and kept
385 asking the DNS the server coordinates over and over again. Now the clients keep
386 a list on unreacheable servers, so they don't try to contact the server for each
387 service and only ask the DNS again with an increasing interval that goes from 10
388 seconds to 2 minutes maximum.
389 - The server now issues an error message if the format string is too long.
390 - Linux DID
391 - Removed the command "Kill ALL Servers", it was too dangerous
392 - Now the list of nodes in "View Servers by Node" is in alphabetical order and
393 in lowercase.
394
395
39630/04/2008
397Changes for version 17.05:
398 - In Linux in some cases a SIGPIPE was generated. Normally the DIM library sets
399 the behaviour of SIGPIPE to ignored, but if another library or main program
400 changes the SIGPIPE behaviour, then the application could exit when the SIGPIPE
401 was generated. Fixed - on Linux now the function send with flag MSG_NOSIGNAL
402 is used in oder to avoid generating SIGPIPE.
403
404
405
4064/04/2008
407Changes for version 17.04:
408 - Sometimes processes (servers or clients) would hang when the DNS was restarted.
409 This was due to a strange (Windows?) feature, by which a connect could succeed
410 after a connection was closed (and reported) on the other side. Fixed.
411
412
413
41427/03/2008
415Changes for version 17.03:
416 - Can now make DID for 64 bits by making DIM using:
417 gmake X64=yes all
418 - Increased the size of the Hash tables for the servers and the DNS.
419
420
421
42220/02/2008
423Changes for version 17.02:
424 - Fixed the Java DimTimer - stop() didn't work
425 Required changing dim_jni.c as well as the java part
426 - Fixed DIM for Darwin - had stopped working
427
428
429
43020/01/2008
431Changes for version 17.01:
432 - The Java API now works on 64 bit machines, Thanks to Joern Adamczewski.
433 Please use:
434 gmake JDIM=yes all
435 - Linux executables are now compiled/linked on slc4 (32 bits).
436 - Big changes in the DimRpcs both client and server part. Tere were bugs
437 related to the handling of timeouts.
438 Unfortunatelly all applications using RPCs need to be re-linked.
439
440
441
442-----------------------------------------------------------------------------------------
443Previous version history:
444
44507/12/2007
446Changes for version 16.14:
447 - Now by default All DIM processes are ready to accept up to 8192 connections, both
448 in Linux and Windows. Although in Linux for this to be effective the machine system
449 limits must allow more than 1024 descriptors/open files per process.
450 - Fixed a little memory leak in tokenstring.cxx
451 - And a little compilation bug for some platforms in tcpip.c
452
453
45415/05/2007
455Changes for version 16.13:
456 - If DIM_HOST_NODE is defined when starting up a server, a DIM client will now try
457 two network interfaces in order to talk to that server and only give up if they both
458 fail. First it will try the ip name or ip address specified by the server using
459 DIM_HOST_NODE, if that fails it will try the ip address of the default interface
460 retrieved by the server using gethostname (and gethostbyname).
461 The changes basically affect the case in which the DIM_HOST_NODE given to the servers
462 is specified as IP address instad of an IP name. Otherwise this mechanism was already
463 working.
464
465
4663/05/2007
467Changes for version 16.12:
468 - The Java version did not exit properly when main() terminated - fixed.
469
470
47125/04/2007
472Changes for version 16.11:
473 - On Linux the timeout to detect a lost connections (unplugged ethernet cable
474 or machine reboot) was too long, around 15 minutes - Fixed.
475 On Linux the KEEPALIVE feature is now used instead of a regular socket write,
476 all other platforms should work as before.
477
478
47921/02/2007
480Changes for version 16.10:
481 - Found a bug in dis_stop_serving: one socket connection was not closed - fixed.
482 - Implemented a new environment variable for the DNS: DIM_DNS_ACCEPTED_NODES
483 Can receive a list on nodes or domains separated by commas.
484 If the DNS receives a connection from a node not in this list, it will
485 reject it and kill the server or client requesting it.
486 - Fixed some C++ warnings.
487
488
48919/01/2007
490Changes for version 16.9:
491 - The modifications done in version 16.8 have introduced a bug:
492 - DIM servers would not behave properly (exit) when receiving a kill command
493 from the DNS (for duplicated services, not allowed host names or manual "kill")
494 This is now fixed.
495
496
49730/10/2006
498Changes for version 16.8:
499 - Modified dis_stop_serving() and DimServer::stop() to completely stop DIM:
500 - Stop also the DIM threads.
501 - Release all allocated memory
502 - Allow a different port number when re-starting.
503
504
50511/07/2006
506Changes for version 16.7:
507 - Prepared for increasing the number of open connections per process
508 (On Linux still requires changing some parameters and recompiling the Dns)
509 - Fixed one error and several warnings for gcc 4.
510
511
51211/05/2006
513Changes for version 16.6:
514 - Sometimes a server or client would crash while exiting if the DNS was not running.
515 Fixed.
516 - Fixed the reporting of some ERROR messages on Windows (used to report error "0")
517 - Allowed dim_send_command to receive instead of -dns <node_name>
518 -dns <node_name>[:<port_number>]
519
520
52101/05/2006
522Changes for version 16.5:
523 - Big Spring Cleanup. Removed most warnings. Can now be compiled on
524 Windows with Warning Level 3 and on Linux with -Wall
525 (still not working for -ansi -pedantic...)
526 - When trying to access a server in a different network (i.e. not reacheable)
527 a client (for example DID) would take very very long to timeout - fixed.
528 - Added two new sets of functions that allow setting the DIM_DNS_NODE separately
529 for a server and a client in the same process:
530 - int dis_set_dns_node(char *node)
531 - int dis_get_dns_node(char *node)
532 - int dis_set_dns_port(int port)
533 - int dis_get_dns_port()
534
535 - int dic_set_dns_node(char *node)
536 - int dic_get_dns_node(char *node)
537 - int dic_set_dns_port(int port)
538 - int dic_get_dns_port()
539 These routines should be used instead of the equivalent ones starting with "dim_"
540 since these set the same DIM_DNS_NODE/port for both Server and client parts of a
541 process.
542 - Adapted the C++ equivalents (DimClient::setDnsNode, etc. and DimServer::setDnsNode,
543 etc.) to use the new routines, so they are now independent.
544 Adapted also the Java equivalents.
545 - Fixed DimBridge to use the new routines.
546 - Fixed a bug in DID that made it crash sometimes at startup (and also when the DNS
547 restarted)!
548 - Found some very interesting features of DIM:
549 - In a node with two ethernet interfaces (so connected to two networks):
550 - The DNS will answer to servers and client on both networks, only its server
551 part - DIS_DNS (the one that answers to DID and DimBrowser requests) would
552 in principle answer only to one of the networks (in principle the default
553 interface* but can be changed by setting the environment variable "DIM_HOST_NODE").
554 - But, in fact, if the DNS or any server is started with the environment variable
555 DIM_HOST_NODE set to the interface that is not the default* one. Than both the
556 DNS (including the server part) and the DIM servers will be accessible from both
557 networks. For example DID will work fine on both networks.
558 * The command "hostname" will return the name of the default network interface.
559
560 Note: As a result of inserting new functions the DIM shared library entry points have
561 changed, so all DIM Servers/Clients should be relinked (in particular in Linux).
562
563
56420/04/2006
565Changes for version 16.4:
566 - Optimized the DNS for providing the list or running servers dynamically
567 by subscribing to the service "DIS_DNS/SERVER_LIST"
568
569
57007/04/2006
571Changes for version 16.3:
572 - Upgraded to work on LynxOS Version 4.
573 - Updated makefile for INTEL platform
574 - Updated some ifdefs based on the existence of __Lynx__
575
576
57710/03/2006
578Changes for version 16.2:
579 - Increased the listen queue. To avoid "Connection Refused" messages from servers
580 or from the DNS.
581
582
58328/02/2006
584Changes for version 16.1:
585 - Fixed the NO_THREADS option for LINUX, it had stopped working.
586 - DimInfo::getData() could return an invalid pointer if called before connecting
587 to the server (or discovering the server did not exist). Fixed
588 (it now returns 0 in this case).
589
590
59109/11/2005
592Changes for version 16.0:
593 - Consolidated the new timer handling mechanism, should be much more precise.
594 - Fixed the RPC handling. Used to be based on timming assumptions.
595 Now uses a safe protocol to make sure the server is connected before sending
596 an RPC request.
597 - Included in the distribution some performance measurements and a benchmark
598 server and client. Sources in src/benchmark executables in /bin for windows
599 and /linux for linux.
600 Usage:
601 benchServer <message_size_in_bytes> <number_of_services>
602 benchClient
603 benchClient will run for a while and print the measurement results.
604
605Please check the Manual for more information at:
606 http://www.cern.ch/dim
Note: See TracBrowser for help on using the repository browser.