Debian Codegraph @

CHANGES

raw
1
2 Version 1.4g
3 - Make sure to clear alarm handler when interrupted by signal
4 (diagnosed by and patch from Jeff Forys). In retrospect this
5 issue was reported by a number of people.
6 - Note -M as optional in README, to match usage output and man page.
7 (Vladimir Panteleev)
8 - Add -J to SSH option string (Matt Stancliff)
9 - Typo "then"->"than" and add datarootdir to Makefile.in
10 (Stig-??rjan Smelror)
11 - More correct checking that we have a monitor port and remote
12 host. (Vladimir D. Seleznev)
13
14 Version 1.4f
15 - Change behaviour when ssh child exits on signal. Previously
16 if SIGHUP, SIGTERM, or SIGKILL were used, autossh assumed that
17 it also was meant to exit. But it is possible that ssh was
18 killed because it had hung up or was unresponsive for some
19 reason. Restarting it is probably the better course.
20 - Fix order of arguments to kill(). Bug reported by Dapeng Gao.
21 - Ignore SIGPIPE. Issue noted and debugged by Rick van der Zwet.
22 - Note use of ExitOnForwardFailure and ClientAliveInterval in
23 README and man page (Till Maas).
24 - Should accept the default -1 with AUTOSSH_MAXSTART. Reported by
25 Daniel Hahler.
26 - Restart ssh when ssh exits with 2, which it can do if
27 setting up tunnel fails due to race with remote end
28 tearing down. (Daniel Sutcliffe).
29 - Daniel Hahler and Jindrich Makovich both reported that signals
30 will have no effect if before ssh started (sleeping in gatetime,
31 etc.) Signal handling is now set just just before monitoring the
32 child, and unset just after.
33 - Makefile should use LDFLAGS (Waldemar Brodkorb).
34 - memset() sigaction structure before use.
35
36 Version 1.4e
37 - By default, changing the poll time should change the first poll
38 time to match. Only have different times if AUTOSSH_FIRST_POLL
39 is explicitly set. Jerry Xie forwarded on change request from
40 Ubuntu bug forums.
41
42 Version 1.4d
43
44 - call daemon() before opening any sockets. Problem discovered and
45 diagnosed by Frank van der Aa when trying to start autossh at
46 system init.
47 - don't use malloc(n * size) idiom; use calloc()
48
49 Version 1.4c
50
51 - updated option string up to OpenSSH 5.6
52 - when using -f, set gate_time to 0; the assumption is that
53 it is being used for infrastructure (i.e. in a system startup),
54 has been tested, and bombing out just because the remote end is
55 not up is not the desired behaviour.
56 - add patch from Thorsten Glaser for configure, fixes misplaced
57 parenthesis and check for __progname.
58
59 Version 1.4b
60
61 - add AUTOSSH_MAXLIFETIME (patch from Steven Clark)
62 - include configure.ac in package
63 - fix poll flags so not checking for writable when write done (patch
64 from John Grahor)
65 - compile time TOUCH_PIDFILE option to touch pid file on connection test.
66
67 Version 1.4a
68
69 - fix up pid file generation (Xander Hudson)
70 - fix up Makefile.in (Andrew Schulman)
71
72 Version 1.4
73
74 - initialise ep in main() to avoid warning (Marcelo Goes)
75 - fix where cast to int happens when calculating next time to poll
76 connection (Omer Erdem Demir)
77 - fix '--' use so can pass -M to autossh for session multiplexing
78 - fix use of strcpy for overlapping copy in strip_arg (Filippo Giunchedi).
79 - add basic GNU autoconf support and drop per-platform Makefiles (Andre Lucas)
80 - pid file support (Ben Vitale)
81 - arbitrary messages in echo string (Ron Yorston)
82
83 Version 1.3
84
85 - fix AUTOSSH_DEBUG for Solaris and AIX
86 - fix attempt to free() static storage (affected platforms without
87 getaddrinfo() -- mostly cygwin) (Andrew Schulman)
88 - change test and placement of typedef for socklen_t under OS X; new
89 OS X defines it
90 - add ability to signal autossh to kill and restart ssh child, using
91 SIGUSR1
92 - add hostname to monitor message (Ron Yorston)
93 - check on looping on poll() where connection has been lost (spinning
94 and high CPU)
95 - fix bug where length argument to accept() was not initialised
96 - fix arg parsing bug where stripping -f from arguments would strip
97 from a parameter to the argument: e.g -L8808:foo:80 would become
98 -L8808:oo:80 (pointed out by Eric Larson)
99 - pull out r/w loops in conn_test() into separate functions, makes
100 logic more apparent
101 - add echo port support: have the remote server use the inetd
102 echo service to echo our test string back to us. Or use some other
103 echo service. Idea and patch from Ron Yorston. This makes it 1.3.
104 - remove bad strcpy() (left over from some testing?) thanks to Ron
105 Yorston, change to memset read buffer to all zeros
106 - fix ssh args when AUTOSSH_PORT=0 is used to turn monitor loop off
107 (Karl Berry)
108 - add more descriptive usage output, by popular request
109
110 Version 1.2g
111
112 - add AUTOSSH_NTSERVICE (Andrew Schulman)
113 - fix bad calculation for seconds left in poll time (again from
114 Andrew Schulman)
115 - from Andrew Schulman: add support for older networking and cygwin
116 - add AUTOSSH_MAXSTART (from Hugo Haas)
117 - loop around waitpid() in ssh_kill() in case interrupted (thanks to
118 Jens Krabbenhoeft)
119 - update ssh argument string
120 - move openlog above port error checking
121 - handle environment variables and -M arg being set to the
122 empty string (reported by Dan Christensen via Filippo Giunche)
123 - add some rudimetary auto-adjust to the network timeouts for
124 low poll times. So by default 15secs on each of accept() and
125 poll()to deal with high-latency connections, but as poll time
126 falls below 30secs, then adjust timeouts down as well.
127 - adjust division in grace_time() to allow for low poll time
128 - don't call shutdown() and close() on invalid socket ()
129 (found by Dmitry V. Levin)
130
131 Version 1.2f
132
133 - by popular request, support the -f flag by doing the fork/background
134 ourselves, and not passing the flag to ssh (thanks to Dan Christensen
135 for prodding me into it)
136 - change timeout to from 5000 to 15000 ms to deal with reported issues
137 with high-latency links; unused var removal; and man page typo (thanks
138 to Michael Shields)
139
140 Version 1.2e
141
142 - check for attempt to use -f flag; exit as error
143 - if AUTOSSH_GATETIME is 0, then disable any of the startup
144 failure bailouts, and just retry
145 - set SO_REUSEADDR on listening socket (Jedi One's suggestion)
146 - show port number in some error messages
147 - note in man page and README about -M 0 turning port monitoring off
148 - remove duplicate include of sys/socket.h
149
150 Version 1.2d
151
152 - AIX support (thanks to Stefan Rodenstein)
153 - fix argument rewrite bug when using AUTOSSH_PORT (thanks
154 to Peter Williams)
155 - log pid of ssh child just after fork
156
157 Version 1.2c
158
159 - use Marcus Friedl's suggestion to simply connect to "127.0.0.1"
160 rather than "localhost", as not really using IPv6 anyway. And this
161 gets rid of annoying ipv6 localhost message on Solaris at least.
162 - support for MacOS X using Greg Parker's fakepoll.
163
164 Version 1.2b
165
166 (Thanks to Simon Easter for bug reports and trials)
167
168 - fix file descriptor leak
169 - setsockopt()'s don't work for Solaris either. Give up on them.
170 - set close-on-exec for read socket so will be closed when
171 ssh executed
172 - do shutdown() before close() (paranoia)
173 - close read socket before exit
174 - pull read socket open and close up out of ssh_run()
175 - cosmetic changes to some loops, get rid of newlines in some
176 errlog strings.
177
178 Version 1.2a
179
180 - setsockopt() will not set timeouts on socket read/write ops
181 under Linux 2.2 kernels (and earlier, I presume). So unless
182 someone tells me we really need them, I've #ifdef'd the
183 setsockopt()s out for Linux.
184 - check value of fd returned by accept().
185 - Oh, there's a man page now. Unfortunately, it doesn't render
186 for Solaris. Sorry, Solaris users are still stuck with the
187 README.
188
189 Version 1.2
190
191 - Major restructuring of code, mostly to support the change to
192 a loop of forwarded ports to test the network connection.
193 - Incremental back off on rate of connection attempts when
194 there are rapid failures to establish/maintain a connection.
195
196 Version 1.1b
197
198 - change handling of ssh exit status
199 - introduce "starting gate" time: ssh process that dies too
200 early is deemed not to have made it out of the starting
201 gate, and autossh exits.
202
203 Version 1.1a
204
205 - fix race after failure to exec ssh where parent will
206 loop attempting to restart
207 - add -V version flag
208 - use strtoul() for environment option parsing
209 - drop useless intermediate function ssh_setwatch()
210
211 Version 1.1
212
213 Initial release