summaryrefslogtreecommitdiffhomepage
path: root/common-channel.c
AgeCommit message (Collapse)Author
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
2007-02-09Improve behaviour when flushing out after a process has exited.Matt Johnston
--HG-- branch : channel-fix extra : convert_revision : e73ee8f7ae404a9355685c30828a0ad4524031bc
2007-02-06disapproval of revision '1dfbc5ef92391d01b576c8506061927869a89887'Matt Johnston
--HG-- branch : channel-fix extra : convert_revision : 73fe066c5d9e2395354ba74756124d45c978a04d
2006-12-05Add some code for testing whether a writefd is closed (by read()ing from it)Matt Johnston
--HG-- branch : channel-fix extra : convert_revision : 1dfbc5ef92391d01b576c8506061927869a89887
2006-12-05- Add some extra tracing.Matt Johnston
- Be clearer about errfd be used for read versus write with ERRFD_IS_READ and ERRFD_IS_WRITE macros --HG-- branch : channel-fix extra : convert_revision : 8778af05d9573c68b0d859feb7079502b46ed769
2006-10-11Remove accidentally removed block (making sure to close the channel).Matt Johnston
Other minor cleanups. --HG-- branch : channel-fix extra : convert_revision : 7559a8cc4f6abe2338636f2aced3a395a79c172c
2006-10-09Passes most test cases nowMatt Johnston
--HG-- branch : channel-fix extra : convert_revision : 5a5f398411a7a3baa9472daa80fea0574fbd8a9a
2006-10-07Rearranged (and hopefully simplified) channel close/eof handlingMatt Johnston
--HG-- branch : channel-fix extra : convert_revision : d44aac5fec50b1d20515da77d410d3c511f16277
2006-10-02Rearranged some more bits, marked some areas that need work.Matt Johnston
* send_msg_channel_data() no longer allocates a separate buffer * getchannel() handles unknown channels so callers don't have to --HG-- branch : channel-fix extra : convert_revision : 3db645581be0fbb0d2ac8d218fbd55e096cbbbe5
2006-10-01just shuffle some variables names about, a brief commentMatt Johnston
about the "bad writefd" problem --HG-- branch : channel-fix extra : convert_revision : f0b407c3d3e047ed83174e6f4ebd85a19352df5b
2006-06-11fix accidentally changed == vs != operatorsMatt Johnston
--HG-- extra : convert_revision : a2345a9e53fcb35bde9f3701406e285c1ef80481
2006-06-11progress towards exiting on writefd closure rather thanMatt Johnston
on process exit - dbclient hangs with scp, so requires work. --HG-- extra : convert_revision : 2186a678a5f79ef432f6593a10e3e13df2a313d5
2006-06-10merge of 332f709a4cb39cde4cedab7c3be89e05f3023067Matt Johnston
and ca4ca78b82c5d430c69ce01bf794e8886ce81431 --HG-- extra : convert_revision : 74020525425a1de06739c6c3bed9ef35e4ad867e
2006-06-10disapproval of revision 'a4c1a9be4db326f8f7adcf30f876fadedf87b203'Matt Johnston
--HG-- extra : convert_revision : 332f709a4cb39cde4cedab7c3be89e05f3023067
2006-03-25Some cleanups/fixes for various TRACE statementsMatt Johnston
--HG-- extra : convert_revision : 84eb6fedc6df0666f8053b9018bf16635dbfb257
2006-03-08merge of 4cbdd6e0a0d8c061075b9ed7609a06c4547f67d3Matt Johnston
and 5d396842815593611f0d61762440145d1fc74d5a --HG-- extra : convert_revision : 4c883eb469d2d251ee8abddbc11ae4005db6da17
2006-03-08Stomp on some minor warningsMatt Johnston
--HG-- extra : convert_revision : 4cbdd6e0a0d8c061075b9ed7609a06c4547f67d3
2006-01-25Check that the output circular buffer is actually empty beforeMatt Johnston
closing the channel (thanks to Tomas Vanek for his help). --HG-- extra : convert_revision : 7fb3ca52f21072127c9615a5bdbc054c24669e51
2005-12-06 * common-channel.c: get rid of the read()-from-writefd codeMatt Johnston
which caused problems when redirecting to or from /dev/null --HG-- extra : convert_revision : a4c1a9be4db326f8f7adcf30f876fadedf87b203
2005-10-20 * rename infd/outfd to writefd/readfd, to avoid confusionMatt Johnston
--HG-- extra : convert_revision : e3e7dc2cf75ad60c83a5b4307c210fee2fe90434
2005-09-05* ensure that we only handle open confirmation/failureMatt Johnston
for channels where it is expected --HG-- extra : convert_revision : acc1ba014aae08ecb3159282fe87defe67899a40
2005-09-05* use own assertions which should get logged properlyMatt Johnston
--HG-- extra : convert_revision : 3dc365619f0840ab5781660b1257a9f22c05d3fe
2005-07-08* close a file descriptor after we've shutdown() both sides, to avoid a leakMatt Johnston
--HG-- extra : convert_revision : 06fda32c634cf16a4c75797441ec2bd533f571c6
2005-05-04compile fix when TRACE debugging is enabledMatt Johnston
--HG-- extra : convert_revision : 7844ac7e5a24b88231de2af7520c49e56820a87c
2005-03-13* fix longstanding bug with connections being closed on failure toMatt Johnston
connect to auth socket (server) * differentiate between get_byte and get_bool * get rid of some // comments * general tidying --HG-- extra : convert_revision : fb8d188ce33b6b45804a5ce51b9f601f83bdf3d7
2005-01-02Fixed DEBUG_TRACE macro so that we don't get semicolons left about the placeMatt Johnston
--HG-- extra : convert_revision : d928bc851e32be7bd429bf7504b148c0e4bf7e2f
2004-12-22Rearrange preprocessor parts so that compilation with various optionsMatt Johnston
disabled works OK. --HG-- extra : convert_revision : cc92f744e34125062d052b757967e167f19d6db5
2004-08-27merge of 50be59810e462f9f44f55e421227d6aa0b31982bMatt Johnston
and 69b007796063cb5f042be7cca2d479e90db869c3 --HG-- extra : convert_revision : 5d0dfaa8c0ee6c728a3b4f0f0855199ba729db83
2004-08-26- added circular buffering for channelsMatt Johnston
- added stderr support for the client - cleaned up a bunch of "unused" warnings, duplicated header definitions - added exit-status support for the client --HG-- extra : convert_revision : 5bdf806d8b440c87f7235414662f4189195618f4
2004-08-24Nasty.Matt Johnston
--HG-- extra : convert_revision : e1229cd01c3007206d2937ea390ad4966c289a5a
2004-08-12Merging in the changes from 0.41-0.43 main Dropbear treeMatt Johnston
--HG-- extra : convert_revision : 4c3428781bc8faf0fd7cadd7099fbd7f4ea386e7
2004-08-10just checkpointingMatt Johnston
--HG-- extra : convert_revision : fbbf404290f3fea3dfa9f6f53eba9389057e9044
2004-07-30we're nearly there yetMatt Johnston
--HG-- extra : convert_revision : ab7e63234f2c134c2321406598ae67038e0ca576
2004-06-03Fixed stupid agentfwd error (using the listening FD, not the accepted on. gah)Matt Johnston
--HG-- extra : convert_revision : 27e793a6395dbf5f2c0aa130d37fad2e4ef67e01
2004-06-03- Reworked non-channel fd handling to listener.cMatt Johnston
- More channel cleaning up --HG-- extra : convert_revision : 385ec76d0304b93e277d1cc193383db5fd773703