| 1 | <HTML> |
| 2 | <HEAD> |
| 3 | <TITLE>XPA ChangeLog</TITLE> |
| 4 | </HEAD> |
| 5 | <BODY> |
| 6 | <H2>XPA ChangeLog</H2> |
| 7 | |
| 8 | <P> |
| 9 | This ChangeLog covers the XPA 2 implementation. It will be updated |
| 10 | as we continue to develop and improve XPA. The up-to-date version can be |
| 11 | found <A HREF="http://hea-www.harvard.edu/RD/xpa/changelog.html">here</A>. |
| 12 | |
| 13 | <H2> Public Release 2.1.15 (July 23, 2013)</H2> |
| 14 | <ul> |
| 15 | <p> |
| 16 | <li> Added support for large data transfers |
| 17 | <P> |
| 18 | <li> XPAGet and XPASet now pass size_t instead of int for lengths |
| 19 | <p> |
| 20 | <li> Send and receive callbacks now pass size_t instead of int for lengths |
| 21 | <p> |
| 22 | <li> Port to mingw (Windows) |
| 23 | </ul> |
| 24 | |
| 25 | |
| 26 | <H2> Public Release 2.1.14 (June 7, 2012)</H2> |
| 27 | <ul> |
| 28 | <P> |
| 29 | <li> Fixed several memory leaks in the Tcl wrappers (tcl.c). |
| 30 | <P> |
| 31 | <li> Use Tcl stubs library for linking shared Tcl, if available. |
| 32 | </ul> |
| 33 | |
| 34 | <H2> Public Release 2.1.13 (April 14, 2011)</H2> |
| 35 | <ul> |
| 36 | <P> |
| 37 | <li> An atexit handler is no longer installed automatically (it crashes |
| 38 | Tcl 8.5.8 applications). Call XPAAtExit(void) to install the handler. |
| 39 | <p> |
| 40 | <li> Removed permission checking from Find() on cygwin systems. This was broken |
| 41 | by Windows 7. |
| 42 | <p> |
| 43 | <li> Removed addition of -no-cpp-precomp flag from gcc 4.2 and beyond (Mac). |
| 44 | </ul> |
| 45 | |
| 46 | <H2> Public Release 2.1.12 (January 26, 2010)</H2> |
| 47 | <ul> |
| 48 | <p> |
| 49 | <li> Added XPA_HOST environment variable to allow users to specify |
| 50 | the hostname (and hence, ip) component of the INET method id. This is |
| 51 | useful, for example, if you want to register an access point using a |
| 52 | VPN-generated IP instead of the canonical IP. |
| 53 | <p> |
| 54 | <li> Fix typo in Tcl binding to xpainfo causing a crash after 2 invocations. |
| 55 | </ul> |
| 56 | |
| 57 | <H2> Public Release 2.1.11 (December 7, 2009)</H2> |
| 58 | <ul> |
| 59 | <p> |
| 60 | <li> Generalized XPANSKeepAlive() to send messages to xpans, proxy xpans, or |
| 61 | both. The default is to send just to proxies (e.g. chandra-ed). |
| 62 | <p> |
| 63 | <li> Changed XPANSKeepAlive() to send an in-band new-line char to |
| 64 | xpans, changed xpans to handle an in-band new-line as a keep-alive |
| 65 | message. Necessitated by Cisco routers that clear the URG flag in |
| 66 | a TCP packet, breaking OOB data transfer for the whole Internet, as |
| 67 | well as the OOB-based keep-alive implemented in xpans. |
| 68 | <p> |
| 69 | <li> In xpans, print warning when the keep-alive option switch is used. |
| 70 | <p> |
| 71 | <li> Port to mingw (thanks to B.Schoenhammer) |
| 72 | <p> |
| 73 | <li> Change OOB character sent by xpans keepalive to a space, trying to working around cisco routers that force OOB data into the inbound stream. |
| 74 | <p> |
| 75 | <li> fix gcc fprintf warning in xpans.c |
| 76 | </ul> |
| 77 | |
| 78 | <H2> Public Release 2.1.10 (September 1, 2009)</H2> |
| 79 | <ul> |
| 80 | <p> |
| 81 | <li> Update mklib and configure.ac to support 64-bit builds on Macs. |
| 82 | <p> |
| 83 | <li> Fixed bug in XPAAccess() in which the returned names could have an extra |
| 84 | (bogus) character when the target is an explicit ip:port or local socket file. |
| 85 | <p> |
| 86 | <li> Add setjmp/longjmp support to xalloc. |
| 87 | <p> |
| 88 | <li> Add XPASaveJmp(void *env) as a high-level interface to xalloc_savejmp(); |
| 89 | </ul> |
| 90 | |
| 91 | <H2> Internal Release 2.1.9</H2> |
| 92 | <ul> |
| 93 | <p> |
| 94 | <li> Fixed a bug that prevented an access point starting with a number |
| 95 | from being recognized peoperly. NB: a pure number still signifies a |
| 96 | port on the current machine. Also num:num signifies ip:port, where ip |
| 97 | can be a pure hex value or the canonical form vvv.xxx.yyy.zzz. |
| 98 | <p> |
| 99 | <li> Modified internal Launch() routine to use posix_spawn(), if necessary. |
| 100 | This is required for OS X 10.5 (leopard), which frowns upon use of fork() |
| 101 | and exec(). Also modified zprocess routines to use Launch(). |
| 102 | <p> |
| 103 | <li> Added XPASetFree(xpa, void (*myfree)(void *)) routine to allow callbacks |
| 104 | to specify a free routine other than malloc free (e.g. Perl garbage collection). |
| 105 | <p> |
| 106 | <li> XPACmdAdd() now checks to ensure that it was passed an XPA struct created |
| 107 | by XPACmdNew(). |
| 108 | <p> |
| 109 | <li> Change launch.h to xlaunch.h to avoid conflict with OS X. |
| 110 | </ul> |
| 111 | |
| 112 | <H2> Public Release 2.1.8 (1 November 2007)</H2> |
| 113 | <ul> |
| 114 | <p> |
| 115 | <li> A public release to complete current XPA development work. |
| 116 | </ul> |
| 117 | |
| 118 | <H2> Patch Release 2.1.7b[1,2] (Feb 22, 2006; March 8, 2007)</H2> |
| 119 | <ul> |
| 120 | |
| 121 | <p> |
| 122 | <li> Added a convenience null to the end of the buffers returned by XPAGet. |
| 123 | |
| 124 | <p> |
| 125 | <li> Added code to avoid calling atexit routine if a fork'ed child |
| 126 | calls exit() instead of _exit(). |
| 127 | |
| 128 | <p> |
| 129 | <li> Added XPA_CLIENT_DOXPA environment variable to turn off client |
| 130 | processing of xpa server requests. |
| 131 | |
| 132 | <p> |
| 133 | <li> Added --version to xpaset, xpaget, xpainfo, xpaaccess, xpans to |
| 134 | display XPA version and exit. |
| 135 | |
| 136 | <p> |
| 137 | <li> Added support for integrating XPA into a Gtk loop. |
| 138 | |
| 139 | <p> |
| 140 | <li> xpaaccess now returns its answer in the error code as well as to stdout |
| 141 | (without the -n switch, it returns 1 for a match, with the -n switch, |
| 142 | the number of matches is returned). |
| 143 | |
| 144 | <p> |
| 145 | <li> Fixed bug which prevented xpans from being started up automatically |
| 146 | by an xpa server if its pathname contained a space character. |
| 147 | |
| 148 | <p> |
| 149 | <li> Fixed bug in MINGW port of xpans in which an XPA server that |
| 150 | terminated via an interrupt was not being properly removed from the |
| 151 | list of registered access points. |
| 152 | |
| 153 | <p> |
| 154 | <li> Added XPA_LOGNAME to override LOGNAME when registering username |
| 155 | |
| 156 | <p> |
| 157 | <li> Upgraded swish-e indexing code to 2.4.5. |
| 158 | |
| 159 | </ul> |
| 160 | |
| 161 | <H2> Patch Release 2.1.6 (4 May 2005)</H2> |
| 162 | <ul> |
| 163 | |
| 164 | <p> |
| 165 | <li> Added -P switch to xpans to enable experimental proxy support |
| 166 | (default is disabled). An argument of 1 processes proxy requests in |
| 167 | the same thread as xpans requests, while an argument of 2 processes |
| 168 | proxy requests in a separate thread. (The latter is recommended to |
| 169 | avoid xpans timeouts, since xpa callback processing can take a long |
| 170 | time.) |
| 171 | |
| 172 | <p> |
| 173 | <li> Added ability to build shared libraries (done automatically with |
| 174 | configure --enable-shared) with compilers other than gcc. |
| 175 | |
| 176 | <p> |
| 177 | <li> Made yet another attempt to build shared libraries under OS X. |
| 178 | |
| 179 | <p> |
| 180 | <li> Fixed a server bug in Tcl support under Windows (introduced early |
| 181 | in 2.1.6) which caused an occasional SEGV. |
| 182 | |
| 183 | <p> |
| 184 | <li> Fixed race condition in cases where 2 or more servers makes client calls |
| 185 | to one another. |
| 186 | |
| 187 | <p> |
| 188 | <li> Fixed bug in the XPA handler routine in which an access point was |
| 189 | turned off if an error occurred in that routine (as opposed to the |
| 190 | user-defined callback routine). |
| 191 | |
| 192 | <p> |
| 193 | <li> Fixed race condition when "ack=false" flag (or -n) is used with XPASet() |
| 194 | (or xpaset). |
| 195 | |
| 196 | <p> |
| 197 | <li> Added defensive code to XPA handler to ensure that the passed XPA record |
| 198 | is valid. |
| 199 | |
| 200 | <p> |
| 201 | <li> Tcl/XPA servers such as ds9 were not turning off select() on the |
| 202 | xpa channels inside an xpa callback, as required. This is now fixed. |
| 203 | |
| 204 | <p> |
| 205 | <li> Added timestamps to most server and client error messages if the |
| 206 | XPA_TIMESTAMP_ERRORS variable is set. This is useful when XPA errors are |
| 207 | being logged in an error log (e.g. Web/CGI use). |
| 208 | |
| 209 | <p> |
| 210 | <li> Generated PostScript and PDF versions of the help pages. |
| 211 | |
| 212 | <p> |
| 213 | <li> Moved OPTIONS section before (often-lengthy) DESCRIPTION section in |
| 214 | man pages. |
| 215 | |
| 216 | <p> |
| 217 | <li> All memory allocation now performs error checking on the result. |
| 218 | |
| 219 | <p> |
| 220 | <li> Removed some compiler warnings that surfaced when using gcc -O2. |
| 221 | |
| 222 | <p> |
| 223 | <li> Updated configure.ac to better support Tcl in Panther with Apple |
| 224 | Frameworks. |
| 225 | |
| 226 | </ul> |
| 227 | |
| 228 | <H2> Patch Release 2.1.5 (12 January 2004)</H2> |
| 229 | <ul> |
| 230 | |
| 231 | <p> |
| 232 | <li> Fixed bug in XPAPoll(). Erroneously, no requests were being |
| 233 | processed when maxreq==0. Now, all pending events are processed, as |
| 234 | per the documentation. |
| 235 | |
| 236 | <p> |
| 237 | <li> Added ack=false to XPAInfo() (and corresponding -n to xpainfo) |
| 238 | so that client does not wait for a response from the server. This is |
| 239 | essential in cases where XPA servers wish to send info messages to |
| 240 | one another without causing a race condition. |
| 241 | |
| 242 | <p> |
| 243 | <li> Generated man pages from the html pages. These are installed |
| 244 | automatically at build time. |
| 245 | |
| 246 | <p> |
| 247 | <li> The xpans program with Unix sockets now uses a lock file to signal |
| 248 | that it is running, in order to avoid a potential (but rare) race |
| 249 | condition at startup. |
| 250 | |
| 251 | <p> |
| 252 | <li> Code that calls Unix-type bind() now manipulate umask() to ensure that |
| 253 | all users have write permissions to the socket file (OS X apparently uses |
| 254 | these permissions while previous platforms ignore them). |
| 255 | |
| 256 | <p> |
| 257 | <li> Configure now checks for socklen_t type (OS X does not define it). |
| 258 | |
| 259 | <p> |
| 260 | <li> Added an atexit function to run XPAFree. The aim here is to delete Unix |
| 261 | socket files on exiting. |
| 262 | |
| 263 | <p> |
| 264 | <li> Under Windows, the Tcl event-handling code now blocks for 1/1000 of a |
| 265 | second instead of not blocking at all (which inadvertently used 100% of cpu). |
| 266 | |
| 267 | <p> |
| 268 | <li> Upgraded Tcl/Tk support to 8.4. |
| 269 | |
| 270 | <p> |
| 271 | <li> Made another round of checks was made through all instances of |
| 272 | strcat, strcpy, etc. to look for potential buffer overflows. Changed |
| 273 | all instances of sprintf() to snprintf(). |
| 274 | |
| 275 | <p> |
| 276 | <li> Class and name designators are now limited to 1024 characters, for |
| 277 | no particular reason. |
| 278 | |
| 279 | <p> |
| 280 | <li> The obsolete $SAORD_BIN variable was being added to the path when |
| 281 | searching for xpans. This is no longer the case. |
| 282 | |
| 283 | <p> |
| 284 | <li> Fixed non-ANSI compiler errors in both xpa.c and xpans.c. |
| 285 | |
| 286 | <p> |
| 287 | <li> Fixed minor problems to support compilation with g++. |
| 288 | |
| 289 | <p> |
| 290 | <li> Ported to Intel icc and gcc 3.3 compilers. |
| 291 | |
| 292 | <p> |
| 293 | <li> Upgraded autoconf to 2.57. Included in this upgrade is a change that |
| 294 | makes gcc the default compiler (use "configure CC=cc" to change this). |
| 295 | Also, by default, the Tcl shared object is no longer automatically built |
| 296 | if the Tcl libraries are used. Use the --enable-tclshlib switch in |
| 297 | configure to enable this feature. |
| 298 | |
| 299 | <p> |
| 300 | <li> Changed license from public domain to GNU GPL. |
| 301 | |
| 302 | </ul> |
| 303 | |
| 304 | <H2> Patch Release 2.1.4 (24 March 2003)</H2> |
| 305 | <ul> |
| 306 | |
| 307 | <p> |
| 308 | <li> Made inet method unique, even when hosts are behind a firewall using |
| 309 | the same ports (on different local machines). |
| 310 | |
| 311 | <p> |
| 312 | <li> The initial connection from an xpa server to a local xpans now is |
| 313 | controlled by a timeout (default 5 sec, controlled by XPA_CONNECT_TIMEOUT |
| 314 | variable). This should prevent a hang on connect() if the network |
| 315 | is not set up correctly. |
| 316 | |
| 317 | <p> |
| 318 | <li> Fixed rare race condition when an XPA server callback performed its own |
| 319 | XPAGet or XPASet call to another XPA server. |
| 320 | |
| 321 | <p> |
| 322 | <li> Use POSIX O_NONBLOCK for non-blocking I/O in fcntl call if it |
| 323 | exists, instead of O_NDELAY. |
| 324 | |
| 325 | </ul> |
| 326 | |
| 327 | <H2> Patch Release 2.1.3 (26 September 2002)</H2> |
| 328 | <ul> |
| 329 | |
| 330 | <p> |
| 331 | <li> Added -k [sec] switch to xpans to support sending one-byte keepalive |
| 332 | messages from xpans to registered xpa servers. |
| 333 | |
| 334 | <p> |
| 335 | <li> Added XPANSKeepAlive routine (and Tcl equivalent) to allow |
| 336 | xpa servers to send a one-byte keepalive message to xpans. |
| 337 | |
| 338 | </ul> |
| 339 | |
| 340 | <H2> Patch Release 2.1.2 (18 July 2002)</H2> |
| 341 | <ul> |
| 342 | |
| 343 | <p> |
| 344 | <li> The "-help" reserved command now also displays the XPA version, if |
| 345 | no explicit sub-commands are specified. |
| 346 | |
| 347 | <p> |
| 348 | <li> Change internal state of xpans proxy to save ip:port value of a |
| 349 | server behind a NAT firewall. This is required to give some hope of |
| 350 | distinguishing multiple instances of ds9 running behind NAT. |
| 351 | |
| 352 | </ul> |
| 353 | |
| 354 | <H2> Patch Release 2.1.1 (20 June 2002)</H2> |
| 355 | <ul> |
| 356 | |
| 357 | <p> |
| 358 | <li> Added a version check between xpans and an access point, |
| 359 | performed when it gets registered by an XPA server. If the server |
| 360 | has a version greater than the xpans version, a warning is issued by |
| 361 | both programs. |
| 362 | |
| 363 | <p> |
| 364 | <li> Added a boolean XPA_NSREGISTER environment variable to allow an |
| 365 | XPA server to skip xpans registration. The default is to register with |
| 366 | the name server. If set to "false", the access point still is set up |
| 367 | but it is not registered with an xpans. It can be registered later on |
| 368 | (using -remote or -proxy, for example). |
| 369 | |
| 370 | <p> |
| 371 | <li> Fixed bug in which xpans was still listening on any interface when |
| 372 | XPA_METHOD was localhost (instead of just listening on localhost). |
| 373 | |
| 374 | </ul> |
| 375 | |
| 376 | <H2> Public Release 2.1.0 (22 April 2002)</H2> |
| 377 | |
| 378 | <P> |
| 379 | New features include: |
| 380 | |
| 381 | <ul> |
| 382 | <p> |
| 383 | <li> Support for proxy access to XPA servers (e.g. ds9) situated |
| 384 | behind a firewall (useful for NVO-type applications). |
| 385 | |
| 386 | <p> |
| 387 | <li> Improved support for allowing remote machines access rights to the |
| 388 | XPA access points (useful for NVO-type applications). |
| 389 | |
| 390 | <p> |
| 391 | <li> Ability for XPAAccess() routine and xpaaccess program to contact XPA |
| 392 | directly. |
| 393 | |
| 394 | <p> |
| 395 | <li> Support for a clipboard access point that allows clients to store ASCII |
| 396 | state information in an XPA-enabled server. |
| 397 | |
| 398 | <p> |
| 399 | <li> Improved support for Windows platform, as well as new support for Mac OSX. |
| 400 | </ul> |
| 401 | |
| 402 | <H2> Pre-Release 2.1.0e (2 April 2002)</H2> |
| 403 | <UL> |
| 404 | |
| 405 | <P> |
| 406 | <LI> Removed the environment variable generated by each XPA access |
| 407 | point (of the form XPA_name=method). The putenv() call was causing ds9 |
| 408 | to crash under both Linux and LinuxPPC during a socket operation. We |
| 409 | suspect a bug in putenv but cannot prove it and this feature is not |
| 410 | essential, so ... |
| 411 | |
| 412 | </UL> |
| 413 | |
| 414 | <H2> Pre-Release 2.1.0e (1 April 2002)</H2> |
| 415 | <UL> |
| 416 | |
| 417 | <P> |
| 418 | <LI> Fixed an uninitialized variable in xpamb which prevented it from |
| 419 | working at all on some systems. |
| 420 | |
| 421 | <P> |
| 422 | <LI> Changed xpamb switch from "-add" to "-data" (to store named data). |
| 423 | |
| 424 | <P> |
| 425 | <LI> Changed how xpamb works with xpaget so that xpamb can return data |
| 426 | from XPA access points as well as from stored data. (Previous versions |
| 427 | only returned stored data.) Now, you can retrieve stored data |
| 428 | explicitly using the -info and/or -data switches. For example: |
| 429 | <PRE> |
| 430 | xpaget xpamb -info foo |
| 431 | </PRE> |
| 432 | will return info about the previously stored data named foo. If |
| 433 | neither switch is present, then the name is assumed to be an XPA access |
| 434 | point. |
| 435 | </UL> |
| 436 | |
| 437 | <H2> Pre-Release 2.1.0e (25 March 2002)</H2> |
| 438 | <UL> |
| 439 | |
| 440 | <P> |
| 441 | <LI> Changed symbol for default port from "*" to "$port" to avoid |
| 442 | a syntactical conflict between class:* and machine:* when processing an |
| 443 | XPA access point class:name specification. Thus, the default inet |
| 444 | method now is '$host:$port' instead of '$host:*'. |
| 445 | |
| 446 | </UL> |
| 447 | |
| 448 | <H2> Pre-Release 2.1.0e (19 March 2002)</H2> |
| 449 | <UL> |
| 450 | |
| 451 | <P> |
| 452 | <LI> Removed timeout check when reading data (in clients using xpaget |
| 453 | and servers filling the data buffer). We have more and more cases |
| 454 | where we need to wait a long time to retrieve data (e.g., slow |
| 455 | networks or receiving data being compressed on the fly). |
| 456 | |
| 457 | <P> |
| 458 | <LI> Moved call to sigaction(SIGCHLD,...) out of XPAOpen(), so that it |
| 459 | is only executed when needed by XPAGet()/XPASet() routines called from |
| 460 | within xpans/proxy. But then changed logic to use a double fork() instead |
| 461 | of sigaction() to prevent zombies (Stevens Adv. Programming p 202). |
| 462 | |
| 463 | <P> |
| 464 | <LI> Each XPA access point now generates an environment variable of the |
| 465 | form XPA_name=method so that children can communicate with the parent access |
| 466 | point more easily. |
| 467 | |
| 468 | <P> |
| 469 | <LI> Added version option to Tcl xparec: |
| 470 | <PRE> |
| 471 | if [catch { xparec "" version } version] { |
| 472 | puts "pre-2.1.0e" |
| 473 | } else { |
| 474 | puts [split $version .] |
| 475 | } |
| 476 | </PRE> |
| 477 | to help differentiate between XPA versions within Tcl code. |
| 478 | |
| 479 | </UL> |
| 480 | |
| 481 | <H2> Pre-Release 2.1.0e (14 February 2002)</H2> |
| 482 | <UL> |
| 483 | <P> |
| 484 | <LI> Fixed client handling of out-of-sync messages. |
| 485 | </UL> |
| 486 | |
| 487 | <H2> Pre-Release 2.1.0e (11 February 2002)</H2> |
| 488 | <UL> |
| 489 | |
| 490 | <P> |
| 491 | <LI> Fixed client.c/xopen() so that it does not open an extra socket. |
| 492 | |
| 493 | <P> |
| 494 | <LI> Fixed xpainfo/xopen() to prevent client from hanging waiting for ack. |
| 495 | |
| 496 | <P> |
| 497 | <LI> Modified stest to generate xpaaccess points xpa, xpa1, c_xpa, and |
| 498 | i_xpa (or more generally, <name>, <name>1, c_<name>, i<name>) to allow |
| 499 | more flexible testing of templates. Also added -a for testing XPAAccess(). |
| 500 | |
| 501 | </UL> |
| 502 | |
| 503 | <H2> Beta Release 2.1.0b10 (31 January 2002)</H2> |
| 504 | <UL> |
| 505 | |
| 506 | <P> |
| 507 | <LI> Added support for Mac OSX/Darwin to configure file. |
| 508 | |
| 509 | </UL> |
| 510 | |
| 511 | <H2> Beta Release 2.1.0b9 (26 January 2002)</H2> |
| 512 | <UL> |
| 513 | |
| 514 | <P> |
| 515 | <LI> Fixed bug in client library that caused XPAAccess() call to hang. |
| 516 | |
| 517 | </UL> |
| 518 | |
| 519 | <H2> Beta Release 2.1.0b8 (4 January 2002)</H2> |
| 520 | <UL> |
| 521 | |
| 522 | <P> |
| 523 | <LI> Made modifications to Makefile.in to make releases easier. |
| 524 | |
| 525 | <P> |
| 526 | <LI> Added instructions to Makefile.in so that xpa.h will always have |
| 527 | correct #defines for XPA_VERSION, XPA_MAJOR_VERSION, XPA_MINOR_VERSION, |
| 528 | and XPA_PATCH_LEVEL. |
| 529 | |
| 530 | </UL> |
| 531 | |
| 532 | <H2> Beta Release 2.1.0b7 (21 December 2001)</H2> |
| 533 | <UL> |
| 534 | |
| 535 | <P> |
| 536 | <LI> Added -proxy switch to -remote sub-command to allow remote access |
| 537 | through a firewall, using xpans as a proxy server. The support for proxy |
| 538 | processing required a change to the client/server protocol. This means |
| 539 | that new xpa servers will not work with old xpa clients (although new |
| 540 | xpa clients will work with old xpa servers). For details about proxy |
| 541 | firewall support, see http://hea-www.harvard.edu/RD/xpa/inet.html. |
| 542 | |
| 543 | <P> |
| 544 | <LI> Fixed Tcl support for XPA under Windows/Cygwin by re-writing |
| 545 | the code used to add XPA to the Tcl event loop. This fix makes ds9 |
| 546 | support for XPA much more stable under Windows. |
| 547 | |
| 548 | <P> |
| 549 | <LI> Added the shutdown() call to XPA under Cygwin/Windows before |
| 550 | closing send() sockets. It appears that a Cygwin recv() socket call |
| 551 | does not always sense when the other end closes the socket using |
| 552 | close(). This measure must be considered a hack, since the actual |
| 553 | problem was never resolved. |
| 554 | |
| 555 | <P> |
| 556 | <LI> Added code to protect accept() and select() calls from interrupts. |
| 557 | |
| 558 | <P> |
| 559 | <LI> Extended syntax of the environment variable XPA_NSINET to: |
| 560 | <PRE> |
| 561 | setenv XPA_NSINET host:port[,port[,port]] |
| 562 | </PRE> |
| 563 | to allow specification of the XPA access point port for xpans, |
| 564 | as well as the proxy data port. |
| 565 | |
| 566 | <P> |
| 567 | <LI> Modified xpans log file so that it contains the xpaset commands |
| 568 | required to reconnect with xpa servers. |
| 569 | |
| 570 | <P> |
| 571 | <LI> xpans now deletes its Unix socket files. |
| 572 | |
| 573 | </UL> |
| 574 | |
| 575 | <H2> Beta Release 2.1.0b6 (29 October 2001)</H2> |
| 576 | <UL> |
| 577 | |
| 578 | <P> |
| 579 | <LI> Implemented a reserve public access point named -clipboard so |
| 580 | that clients can store ASCII state information on any number of named |
| 581 | clipboards. Clipboards of the same name created by clients on |
| 582 | different machines are kept separate. The syntax for creating a |
| 583 | clipboard is: |
| 584 | <PRE> |
| 585 | [data] | xpaset [server] -clipboard add|append [clipboard_name] |
| 586 | xpaset -p [server] -clipboard delete [clipboard_name] |
| 587 | xpaget [server] -clipboard [clipboard_name] |
| 588 | </PRE> |
| 589 | Use "add" to create a new clipboard or replace the contents of an existing |
| 590 | one. Use "append" to append to an existing clipboard. |
| 591 | |
| 592 | </UL> |
| 593 | |
| 594 | <H2> Beta Release 2.1.0b5 (22 October 2001)</H2> |
| 595 | <UL> |
| 596 | |
| 597 | <P> |
| 598 | <LI> Use FD_SETSIZE instead of getdtablesize() to determine how many files |
| 599 | to check during select(); |
| 600 | |
| 601 | <P> |
| 602 | <LI> Under Cygwin, the launch() routine now uses the Cygwin spawnvp() |
| 603 | instead of fork()/exec() where possible (i.e., if no stdfiles are |
| 604 | being redirected). This is recommended by Cygwin's (skimpy) on-line |
| 605 | documentation and seems to fix the problems ds9 had when starting xpans |
| 606 | automatically. |
| 607 | |
| 608 | <P> |
| 609 | <LI> Added error check to select() call in xpans. |
| 610 | |
| 611 | </UL> |
| 612 | |
| 613 | <H2> Beta Release 2.1.0b4 (24 September 2001)</H2> |
| 614 | <UL> |
| 615 | |
| 616 | <P> |
| 617 | <LI> The launch() now can return an error code if the execv() system |
| 618 | call fails (something system() does not do). |
| 619 | |
| 620 | <P> |
| 621 | <LI> INET socket calls between xpa clients and servers now will use |
| 622 | localhost if they are on the same machine. This protects against |
| 623 | Linux systems where the hostname is hardwired (wrongly) in a DHCP |
| 624 | environment. |
| 625 | |
| 626 | </UL> |
| 627 | |
| 628 | <H2> Beta Release 2.1.0b3 (6 September 2001)</H2> |
| 629 | <UL> |
| 630 | |
| 631 | <P> |
| 632 | <LI> Modified xpans so that, in the case of a firewall, it tries to |
| 633 | correct the specified ip:port by matching against the ip found in |
| 634 | the socket packet at accept() time. |
| 635 | |
| 636 | <P> |
| 637 | <LI> Replaced system() call used to start xpans automatically with |
| 638 | a special launch() call, which performs execvp() directly without going |
| 639 | through sh. (launch() works under DOS and has fewer security problems.) |
| 640 | |
| 641 | <P> |
| 642 | <LI> Fixed bug in xpans in which its xpa port was always being set to 14286. |
| 643 | |
| 644 | </UL> |
| 645 | |
| 646 | <H2> Beta Release 2.1.0b2 (17 August 2001)</H2> |
| 647 | <UL> |
| 648 | |
| 649 | <P> |
| 650 | <LI>Added support for -remote command, which registers the access |
| 651 | point in the XPA name server of the specified remote server, and gives |
| 652 | the remote server access rights to the access point. This is used, for |
| 653 | example, to give data servers xpa access to ds9 so that data can be |
| 654 | sent to ds9 as a result of a CGI-based Web query. |
| 655 | |
| 656 | <P> |
| 657 | <LI>Reserved commands (except "-help" and "-version") now can only be |
| 658 | executed on the machine on which the xpa service is running (not |
| 659 | through -remote servers). |
| 660 | |
| 661 | <P> |
| 662 | <LI>Fixed bug in xpans in which a bad telnet command could hang the program. |
| 663 | |
| 664 | <P> |
| 665 | <LI>Added -s [security file] to xpans to allow logging of all external |
| 666 | connections. |
| 667 | |
| 668 | </UL> |
| 669 | |
| 670 | <H2> Beta Release 2.1.0b1 (6 August 2001)</H2> |
| 671 | <UL> |
| 672 | <P> |
| 673 | <LI> The xpaaccess client program and XPAAccess() client subroutine |
| 674 | were modified so that an access-type query can directly contact the |
| 675 | xpa servers matching the requested xpa template, instead of just |
| 676 | querying the name server for registered access points. This avoid the |
| 677 | race condition in which an access point is registered but is not yet |
| 678 | available, perhaps because the server has not yet entered its event |
| 679 | loop. Note that the calling sequence of the XPAAccess() routine was |
| 680 | changed to return all matching access points and their availability |
| 681 | status (instead of just returning the number of registered access |
| 682 | points). Because of this, we are calling this a minor release instead |
| 683 | of a patch. |
| 684 | |
| 685 | <P> |
| 686 | <LI> Added support for XPA_PORT and XPA_PORTFILE environment variables |
| 687 | to allow specification of the port to be used by the command channel |
| 688 | (and data channel, if an optional second port is specified) for a given |
| 689 | access point. |
| 690 | |
| 691 | <P> |
| 692 | <LI> Added -m switch to xpaget, xpaset, xpainfo, xpaaccess to allow |
| 693 | override of the XPA_METHOD environment variable. |
| 694 | |
| 695 | <P> |
| 696 | <LI> Changed the default name of the ACL file from xpa.acl to acls.xpa. |
| 697 | |
| 698 | <P> |
| 699 | <LI> Fixed bug in which it was not possible to send a "set ACL" |
| 700 | command to an XPA server which did not have a receive callback (i.e., |
| 701 | did not allow xpaset). The xpans program is one such server. It now is |
| 702 | possible to set the ACL on xpans. |
| 703 | |
| 704 | <P> |
| 705 | <LI> We have discovered that Tcl support for datachan and cmdchan is |
| 706 | broken under Windows due to an unexplained incompatibility between |
| 707 | Cygwin sockets and Win32 sockets. We therefore have removed datachan |
| 708 | and cmdchan from the Windows/Tcl support until further notice. |
| 709 | |
| 710 | <P> |
| 711 | <LI> Extended the behavior of the XPA_DEFACL environment variable so that |
| 712 | it can support more than one acl, using a list of semi-colon delimited |
| 713 | controls such as: setenv XPA_DEFACL '*:* $host +; *:foo1 otherhost +'. |
| 714 | |
| 715 | <P> |
| 716 | <LI> Fixed bug in which the class:name specifier "*:*" was erroneously |
| 717 | trying to access the xpans name server, instead of accessing all |
| 718 | access points. |
| 719 | |
| 720 | <P> |
| 721 | <LI> Support TMPDIR and TMP environment variables as well as XPA_TMPDIR. |
| 722 | |
| 723 | </UL> |
| 724 | |
| 725 | <H2> Patch Release 2.0.5 (10 November 2000)</H2> |
| 726 | <UL> |
| 727 | <P> |
| 728 | <LI> Added support for Tcl on Windows where there is no select()-based |
| 729 | event loop (i.e., where there is no Tcl_CreateFileHandler call in Tcl) |
| 730 | <P> |
| 731 | <LI> Minor fixes in Makefile for installing on Windows |
| 732 | <P> |
| 733 | <LI> Minor compiler fixes from gcc -Wall. |
| 734 | </UL> |
| 735 | |
| 736 | <H2> Patch Release 2.0.4 (20 September 2000) </H2> |
| 737 | <UL> |
| 738 | <P> |
| 739 | <LI> Removed extraneous include of varargs.h from find.c. |
| 740 | <P> |
| 741 | <LI> Ported to SGI C compiler, which caught lots of unused variables, etc. |
| 742 | <P> |
| 743 | <LI> Ported to Cygwin/Windows, which required that we change socket read() |
| 744 | and write() calls to recv() and send() respectively. Also had to ensure that |
| 745 | we only did socket I/O on sockets (no fileio). |
| 746 | </UL> |
| 747 | |
| 748 | <H2> Patch Release 2.0.3 (15 June 2000) </H2> |
| 749 | <UL> |
| 750 | <P> |
| 751 | <LI> Fixed the client XPASet() and XPASetFd() calls to handle the specified |
| 752 | max number of connections (they were ignoring this argument, leading to |
| 753 | memory overwrites). |
| 754 | <P> |
| 755 | <LI> Fixed Makefile.in so that CFLAGS and LDFLAGS are not hard-wired values. |
| 756 | <P> |
| 757 | <LI> Fixed word.h to load malloc.h and stdlib.h only if they exist. |
| 758 | <P> |
| 759 | <LI> Documentation fixes to programs.html (in xpaaccess) and client.html |
| 760 | (XPANSLookup). |
| 761 | <P> |
| 762 | <LI> Added explicit typecast to strlen() argument to MAX #define in |
| 763 | XPAClientStart (strlen() is unsigned in Linux, which can break MAX). |
| 764 | <P> |
| 765 | <LI> Removed bogus Imakefile from directory. |
| 766 | <P> |
| 767 | <LI> Changed directory name to include patch level (i.e., xpa-2.0.3). |
| 768 | </UL> |
| 769 | |
| 770 | <H2> Patch Release 2.0.2 (9 September 1999)</H2> |
| 771 | <UL> |
| 772 | <P> |
| 773 | <LI> Fixed server mode (-s) in the xpaset program by properly cleaning up |
| 774 | the input buffers (sending commands and data in server mode was broken). |
| 775 | </UL> |
| 776 | |
| 777 | <H2> Patch Release 2.0.1 (6 August 1999)</H2> |
| 778 | <UL> |
| 779 | <P> |
| 780 | <LI> Fixed the Tcl binding code (tcl.c) for 64-bit machines (Dec Alpha) |
| 781 | (erroneously used %x instead of %p when converting pointers to ASCII). |
| 782 | <P> |
| 783 | <LI> Got rid of a few compiler warnings on 64-bit machines (a few are |
| 784 | unavoidable since we must cast int to void * and back when passing around |
| 785 | client data). |
| 786 | </UL> |
| 787 | |
| 788 | <H2> Public Release 2.0 (27 May 1999)</H2> |
| 789 | <UL> |
| 790 | <P> |
| 791 | <LI> "a new day with no mistakes ... yet" |
| 792 | </UL> |
| 793 | |
| 794 | <HR> |
| 795 | <P> |
| 796 | <A HREF="./help.html">Index to the XPA Help Pages</A> |
| 797 | |
| 798 | <HR> |
| 799 | <H5>Last updated: 22 April 2002</H5> |
| 800 | </BODY> |
| 801 | </HTML> |