Displaying 4 results from an estimated 4 matches for "channel_max_fd".
2005 Sep 04
2
ControlPersist and multiple X11 forwarding.
Three patches attached.
One implements a 'ControlPersist' option, which when used with
'ControlMaster auto' or 'ControlMaster 'yes' make makes the master
background itself and stick around after its own primary session is
completed.
The second causes control clients to pass X11 display, auth proto and
auth data over the control socket so that appropriate X11
2000 Mar 03
7
[PATCH] Add a Maximum Idle Time (1.2.2)
...6,10 @@
*/
void
-client_wait_until_can_do_something(fd_set * readset, fd_set * writeset)
+client_wait_until_can_do_something(fd_set * readset, fd_set * writeset, int trans_inter)
{
+ int select_return;
+
/* Initialize select masks. */
FD_ZERO(readset);
@@ -436,15 +438,32 @@
max_fd = channel_max_fd();
/*
- * Wait for something to happen. This will suspend the process until
- * some selected descriptor can be read, written, or has some other
- * event pending. Note: if you want to implement SSH_MSG_IGNORE
- * messages to fool traffic analysis, this might be the place to do
- * it: ju...
2012 Oct 22
1
[PATCH] Implement remote dynamic TCP forwarding
...r("getsockopt SO_ERROR failed");
+ }
+ if (err == 0)
+ c->type = SSH_CHANNEL_OPEN;
+ else {
+ /* Try next address, if any */
+ int sock;
+ if ((sock = connect_next(&c->connect_ctx)) > 0) {
+ close(c->sock);
+ c->sock = c->rfd = c->wfd = sock;
+ channel_max_fd = channel_find_maxfd();
+ return;
+ }
+ chan_mark_dead(c);
+ }
+ }
+}
+
/* This is our fake X11 server socket. */
/* ARGSUSED */
static void
@@ -1984,6 +2094,7 @@ channel_handler_init_20(void)
channel_pre[SSH_CHANNEL_DYNAMIC] = &channel_pre_dynamic;
channel_pre[SSH_CHANNEL_MUX_L...
2001 Oct 24
2
disable features
...hannels.c
===================================================================
RCS file: /home/markus/cvs/ssh/channels.c,v
retrieving revision 1.140
diff -u -r1.140 channels.c
--- channels.c 10 Oct 2001 22:18:47 -0000 1.140
+++ channels.c 22 Oct 2001 18:25:31 -0000
@@ -76,7 +76,7 @@
*/
static int channel_max_fd = 0;
-
+#ifdef WITH_TCPFWD
/* -- tcp forwarding */
/*
@@ -102,8 +102,9 @@
* anything after logging in anyway.
*/
static int all_opens_permitted = 0;
+#endif
-
+#ifdef WITH_X11FWD
/* -- X11 forwarding */
/* Maximum number of fake X11 displays to try. */
@@ -122,8 +123,9 @@
*/
sta...