summaryrefslogtreecommitdiffhomepage
path: root/common-channel.c
AgeCommit message (Collapse)Author
2018-11-14Split ChanType closehandler() and cleanup() so that dbclient doesn'tMatt Johnston
lose exit status messages
2017-08-19Pointer parameter could be declared as pointing to constFrancois Perrad
2016-11-15remove duplicated includeFrancois Perrad
2016-05-04Convert #ifdef to #if, other build changesMatt Johnston
2015-11-27Fix "Avoid queueing into circbuffer when the channel is about to close"Matt Johnston
which broken handling EAGAIN/EINTR
2015-11-27Fix ses.channel_signal_pending raceMatt Johnston
2015-11-19Avoid queueing into circbuffer when the channel is about to closeMatt Johnston
2015-11-19Send SSH_OPEN_RESOURCE_SHORTAGE response when too many channels openMatt Johnston
rather than SSH_OPEN_UNKNOWN_CHANNEL_TYPE
2015-11-17Only clear channel_signal_pending after handling all channels,Matt Johnston
from Andrzej Szombierski
2015-06-04buf_getstring and buf_putstring now use non-unsigned char*Matt Johnston
2015-05-05Turn send_msg_channel_open_failure()'s text and lang into const char *Gaël PORTAY
2015-05-05Turn start_send_channel_request()'s type argument into char *Gaël PORTAY
2015-05-05Fix pointer differ in signess warnings [-Werror=pointer-sign]Gaël PORTAY
2015-05-02Fix no-writev fallbackMatt Johnston
2015-03-21Avoid channel writev() when there is nothing to writeMatt Johnston
2015-03-20Make main socket nonblocking. Limit writequeue size.Matt Johnston
2015-03-20avoid malloc for iovecMatt Johnston
2015-03-01Avoid copying data into circular bufferMatt Johnston
--HG-- branch : nocircbuffer
2015-02-28merge from defaultMatt Johnston
--HG-- branch : fastopen
2015-02-24Use m_close() which will avoid close(-1)Matt Johnston
2015-02-24Fix for old compilers, variable declarations at beginning of functionsThorsten Horstmann
and /**/ comments
2015-02-20Move generic network routines to netio.cMatt Johnston
--HG-- branch : fastopen
2015-02-18async connections workingMatt Johnston
--HG-- branch : fastopen
2014-08-19Make keepalive handling more robust, this should now match what OpenSSH doesMatt Johnston
2014-07-28Make sure the check_close() handler runs when a server child process exitsMatt Johnston
2014-07-26Avoid use-after-free when channel inithandler fails. Thanks to CoverityMatt Johnston
2014-07-16Set tcp priority as follows:Matt Johnston
if (connecting || ptys || x11) tos = LOWDELAY; else if (tcp_forwards) tos = 0; else tos = BULK; TCP forwards could be either lowdelay or bulk, hence the default priority.
2014-07-09Make sure client exit messages don't get lostMatt Johnston
2014-07-08Send a failure response if a client receives a global requestMatt Johnston
2014-06-25Improve handling lots of concurrent forwarded connections. IncreaseMatt Johnston
connection backlog, avoid check_close() for channels that haven't had IO
2014-02-22A few fixes for cases where compression increases payload sizes, andMatt Johnston
be more precise about maximum channel sizes
2014-02-17Read (and enqueue) packets from interactive input even whenMatt Johnston
we're waiting for a key exchange. This should hopefully fix the situation where "~." doesn't work to terminate a client session when a laptop wakes up. The client will be stuck waiting for a key exchange on a dead connection, so won't have read the escape character
2013-09-21Improve EOF handling for half-close. Patch from Catalin PatuleaMatt Johnston
Fixes the situation $ ./dbclient root@1.2.3.4 'cat; echo foo' ^D <no output>
2013-04-10run closehandlers on cleanupMatt Johnston
2013-04-01Move the more verbose TRACE() statements into TRACE2()Matt Johnston
2013-03-23Add ~. and ~^Z handling to exit/suspend dbclientMatt Johnston
2013-03-20use an empty writebuf rather than a NULL oneMatt Johnston
2013-03-19Fix memory leak when direct TCP connections time out on connection.Matt Johnston
Long-standing bug probably stemming from the awkwardly named delete_channel() versus remove_channel()
2012-05-09- Don't sent SSH_MSG_UNIMPLEMENTED if we don't have ENABLE_SVR_REMOTETCPFWDMatt Johnston
- Fix build if ENABLE_SVR_REMOTETCPFWD is disabled but ENABLE_SVR_LOCALTCPFWD is enabled
2011-12-04- Make sure we don't use channel-specific data after it has been freedMatt Johnston
with a ChanType->closehandler()
2011-02-23Improve capitalisation for all logged stringsMatt Johnston
--HG-- extra : convert_revision : 997e53cec7a9efb7413ac6e17b6be60a5597bd2e
2008-11-07Idle timeout patch from Farrell Aultman. Needs testing, unsure if serverMatt Johnston
code works --HG-- extra : convert_revision : ff66e05ae040561110af70114bf83f11ed528f05
2008-11-02Don't use // style commentsMatt Johnston
--HG-- extra : convert_revision : c92c7b4fef739b505d9842b45a393e1089097e3b
2008-09-23Don't send anything in response to a SSH_MSG_CHANNEL_REQUEST if we haveMatt Johnston
already sent a SSH_MSG_CHANNEL_CLOSE. This fixes a bug triggered by more recent versions of putty with tcp fowarding and window adjustment request messages. --HG-- extra : convert_revision : 10b2f286b9886364db39dfbb4f8f46e49e345d87
2008-02-21Don't return until the shell has quit. This will ensure that an exit statusMatt Johnston
is always returned. --HG-- extra : convert_revision : 32fc88053016994100eb0ef17f75592881c90d97
2007-07-25Add -W <windowsize> argument and document it.Matt Johnston
--HG-- extra : convert_revision : 98d4c0f15480bf749c451034cbc565d7e9d3b8dc
2007-07-24Rearrange the channel buffer sizes into three neat use-editable values inMatt Johnston
options.h. Increasing RECV_MAX_WINDOW gives big network performance increases - even with the present buffers (which haven't changed) it performs a lot better. Next step is to make the window size a cmdline option. --HG-- extra : convert_revision : 24c7cb47fb56cf5b82e3bc0859b45ea83038eab0
2007-02-22Fix a stupid bug s/readfd/errfd/ affecting channel close on child exitMatt Johnston
--HG-- extra : convert_revision : 16dd04147563e91faaa44de193dece0f4056ec7a
2007-02-16Fix for -pedantic -ansi compilation, change // to /**/, plus some signednessMatt Johnston
and trailing-comma-in-array issues --HG-- extra : convert_revision : c22be8b8f570b48e9662dac32c7b3e7148a42206
2007-02-12- Fix bug in child-exit handling where the wrong pid was being matched.Matt Johnston
- Also wait for errfd to close before closing the channel --HG-- branch : channel-fix extra : convert_revision : ed68ea8963f7d1fa600f81479e7e211efc5a31bc