Displaying 8 results from an estimated 8 matches for "chan_mark_dead".
2008 Aug 30
1
Exiting ssh when MaxSessions=0
Hi,
I've been experimenting with MaxSessions=0 in the sshd_config and have
encountered one unfortunate problem. Once the client authenticates to
the server, it ceases to respond to keyboard input.
At first glance, it looks like the client is in a hung state and does
not time out. If port forwarding was requested on the command-line and
the server accepts the request, that continues to work.
2012 Oct 22
1
[PATCH] Implement remote dynamic TCP forwarding
...try to guess the protocol */
+ p = buffer_ptr(&c->output);
+ switch (p[0]) {
+ case 0x04:
+ ret = channel_decode_socks4(c, readset, writeset);
+ break;
+ case 0x05:
+ ret = channel_decode_socks5(c, readset, writeset);
+ break;
+ default:
+ ret = -1;
+ break;
+ }
+ if (ret < 0) {
+ chan_mark_dead(c);
+ } else if (ret == 0) {
+ debug2("channel %d: pre_rdynamic: need more", c->self);
+ /* need more */
+ } else {
+ /* switch to the next state */
+ struct channel_connect cctx;
+ int sock;
+
+ sock = connect_to_helper(c->path, c->host_port, &cctx);
+ if (sock < 0...
2007 Mar 23
7
4.6p1 chan_read_failed error
The 4.6p1 sshd is logging this error during remote commands or file
transfers:
error: channel 0: chan_read_failed for istate 3
Platform is Solaris 8, 4.6p1 + OpenSSL 0.9.8d.
The commands and transfers work correctly, so the error message appears
to be spurious. The error message does not appear when processing logins.
Otherwise 4.6p1 is running without any apparent problems. This error
2014 Jun 26
14
[Bug 2250] New: SOCKS5 should return "NO ACCEPTABLE METHODS" instead of nothing
https://bugzilla.mindrot.org/show_bug.cgi?id=2250
Bug ID: 2250
Summary: SOCKS5 should return "NO ACCEPTABLE METHODS" instead
of nothing
Product: Portable OpenSSH
Version: -current
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
2001 Sep 28
1
[PATCH] fix for Linux hang on exit bug in 2.9.9p2
...+ }
if (chan_is_dead(c)) {
/*
* we have to remove the fd's from the select mask
diff -u openssh-2.9.9p2/channels.h openssh-2.9.9p2J/channels.h
--- openssh-2.9.9p2/channels.h Mon Sep 17 23:51:14 2001
+++ openssh-2.9.9p2J/channels.h Thu Sep 27 22:16:44 2001
@@ -219,6 +219,7 @@
void chan_mark_dead(Channel *);
void chan_init_iostates(Channel *);
void chan_init(void);
+void chan_shutdown_read(Channel *);
typedef void chan_event_fn(Channel *);
diff -u openssh-2.9.9p2/clientloop.c openssh-2.9.9p2J/clientloop.c
--- openssh-2.9.9p2/clientloop.c Mon Sep 17 23:51:14 2001
+++ openssh-2....
2001 Nov 14
6
[PATCH]: Patch to fix hang on exit bug under Linux and add optional exit delay
...ntinue;
+ }
(*ftab[c->type])(c, readset, writeset);
+ }
channel_garbage_collect(c);
}
}
diff -ur openssh-3.0p1/channels.h openssh-3.0p1J/channels.h
--- openssh-3.0p1/channels.h Thu Oct 11 19:35:06 2001
+++ openssh-3.0p1J/channels.h Tue Nov 13 15:55:52 2001
@@ -218,6 +218,7 @@
void chan_mark_dead(Channel *);
void chan_init_iostates(Channel *);
void chan_init(void);
+void chan_shutdown_read(Channel *);
typedef void chan_event_fn(Channel *);
diff -ur openssh-3.0p1/clientloop.c openssh-3.0p1J/clientloop.c
--- openssh-3.0p1/clientloop.c Thu Oct 11 19:36:09 2001
+++ openssh-3.0p1J/...
2010 Jan 14
1
ssh(1) multiplexing rewrite
...;ctl_fd, buf, sizeof(buf));
- if (len < 0 && (errno == EINTR || errno == EAGAIN))
- return 1;
- if (len <= 0) {
- debug2("channel %d: ctl read<=0", c->self);
- if (c->type != SSH_CHANNEL_OPEN) {
- debug2("channel %d: not open", c->self);
- chan_mark_dead(c);
- return -1;
- } else {
- chan_read_failed(c);
- chan_write_failed(c);
- }
- return -1;
- } else
- fatal("%s: unexpected data on ctl fd", __func__);
- }
- return 1;
-}
-
-static int
channel_check_window(Channel *c)
{
if (c->type == SSH_CHANNEL_OPEN &&...
2001 Oct 10
7
OpenSSH solaris: bad return code after exec of remote command
Hi OpenSSH developers,
I am using openSSH (now 2.9.9p2, but prob occurs in 2.9p2 also) to execute
commands on a remote machine which outputs data to stdout then pipes it to
another invocation of ssh which connects back to the first machine in the same
way, where it starts a program to read and store the output from the command on
the second machine. I am using the "command" option in