public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* On Win98, connections hang when using remote command execution with SSHD.
@ 2001-09-01 22:12 Gerald Villemure
  2001-09-04  3:33 ` Frank Wuebbeling
  0 siblings, 1 reply; 5+ messages in thread
From: Gerald Villemure @ 2001-09-01 22:12 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]

Using "remote command execution" or in other words a non interactive
connection to the SSHD server process seems to hang on Win98.  Win2k seems
fine however so I have included the debug logs of both systems.

I am using Cygwin 1.3.2 with OpenSSH 2.9p2-3

Anybody else have this problem?
Anybody have advice?

Thanks in advance,
Gérald


on Win98 I get:
debug1: channel 0: close_write
debug1: session_free: session 0 pid 197587
**Thats it! it justs stops!

on Win2K I get:
debug1: channel 0: close_write
debug1: session_free: session 0 pid 1268
debug2: channel 0: read 0 from efd 10
debug2: channel 0: closing read-efd 10
debug1: channel 0: read<=0 rfd 8 len 0
debug1: channel 0: read failed
debug1: channel 0: input open -> drain
debug1: channel 0: close_read
debug1: channel 0: input: no drain shortcut
debug1: channel 0: ibuf empty
debug1: channel 0: input drain -> closed
debug1: channel 0: send eof
debug1: channel 0: send close
debug2: channel 0: no data after CLOSE
debug1: channel 0: rcvd close
debug2: channel 0: no data after CLOSE
debug1: channel 0: is dead
debug1: channel_free: channel 0: status: The following connections are open:




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: On Win98, connections hang when using remote command execution with SSHD.
  2001-09-01 22:12 On Win98, connections hang when using remote command execution with SSHD Gerald Villemure
@ 2001-09-04  3:33 ` Frank Wuebbeling
  2001-09-04  3:39   ` Corinna Vinschen
  2001-09-04 17:42   ` Gerald Villemure
  0 siblings, 2 replies; 5+ messages in thread
From: Frank Wuebbeling @ 2001-09-04  3:33 UTC (permalink / raw)
  To: Gerald Villemure, cygwin

> Using "remote command execution" or in other words a non interactive
> connection to the SSHD server process seems to hang on Win98

Same problem here.  Forcing terminal allocation with -t probably solves
*your* problem, but at least with me creates a new, nastier one. Please do
me the favor and try it:

-> try "ssh -t localhost id". Will probably work, provided you have setup
your access correctly.
-> try "while true; do ssh -t localhost id; done". Will work about seven
times, and then send sshd to hell.

anybody has a solution for this?



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: On Win98, connections hang when using remote command execution with SSHD.
  2001-09-04  3:33 ` Frank Wuebbeling
@ 2001-09-04  3:39   ` Corinna Vinschen
  2001-09-04  6:46     ` Frank Wuebbeling
  2001-09-04 17:42   ` Gerald Villemure
  1 sibling, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2001-09-04  3:39 UTC (permalink / raw)
  To: cygwin

On Tue, Sep 04, 2001 at 12:33:00PM +0200, Frank Wuebbeling wrote:
> 
> > Using "remote command execution" or in other words a non interactive
> > connection to the SSHD server process seems to hang on Win98
> 
> Same problem here.  Forcing terminal allocation with -t probably solves
> *your* problem, but at least with me creates a new, nastier one. Please do
> me the favor and try it:
> 
> -> try "ssh -t localhost id". Will probably work, provided you have setup
> your access correctly.
> -> try "while true; do ssh -t localhost id; done". Will work about seven
> times, and then send sshd to hell.
> 
> anybody has a solution for this?

Not a solution, just a guess. Try a developers snapshot of Cygwin.
It's not that likely to help since the problem is probably induced
by the crappy pipe handling of 9x/ME, but...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: On Win98, connections hang when using remote command execution with SSHD.
  2001-09-04  3:39   ` Corinna Vinschen
@ 2001-09-04  6:46     ` Frank Wuebbeling
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Wuebbeling @ 2001-09-04  6:46 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna,
> Not a solution, just a guess. Try a developers snapshot of Cygwin.
> It's not that likely to help since the problem is probably induced
> by the crappy pipe handling of 9x/ME, but...
I tried it, but it makes things even worse (*if* I did it right). I took
cygwin1.dll and put it into /usr/bin, nothing else, I did no recompilation.
Here's the report:

I use the following batch file in the Startup folder to start sshd on
Windows startup:
================
@echo off
D:
chdir \programme\cygwin\bin
bash --login -c /usr/sbin/sshd.exe
================
With the old cygwin1.dll, the DOS-Window in which this batchfile is started,
never vanishes. I checked "close window on exit" for the batchfile, but no
result. With the new cygwin1.dll, the DOS-Window actually goes away after
sshd backgrounds, which it should. So this is the good news.

The bad news is that sshd still sleeps after having completed exactly 8
connections. I can't open any new connections to this sshd, so this
behaviour didn't change with the new version. But in the old version I could
kill sshd, start a new one, and I could try again for 8 connections. With
the new version of cygwin1.dll, I can't even restart after killing sshd, the
newly-started sshd never gets a connection.

My current solution to the problem, by the way, is to run sshd from inetd
(with the old library, of course), which may be inefficient, but works.

Frank


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: On Win98, connections hang when using remote command execution with SSHD.
  2001-09-04  3:33 ` Frank Wuebbeling
  2001-09-04  3:39   ` Corinna Vinschen
@ 2001-09-04 17:42   ` Gerald Villemure
  1 sibling, 0 replies; 5+ messages in thread
From: Gerald Villemure @ 2001-09-04 17:42 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]

> -> try "ssh -t localhost id". Will probably work, provided you have setup
> your access correctly.
> -> try "while true; do ssh -t localhost id; done". Will work about seven
> times, and then send sshd to hell.

You are correct using -t did the trick!  My test have revealed that I can
connect 10 times before SSHD crashes (its consistently 10 connections)

The tests are done by starting a session and manually running SSHD.

Note that I have done these tests with a mix and match of:
Cygwin 1.3.2 and 1.1.8
OpenSSH 2.9p2 and 2.5.2p2
They all behave the same way.

Is for an elegant way to start SSHD in Win98 I use this command:
  (not used for the test in order to minimize the variables)

c:\cygwin\bin\run-nw.exe /bin/bash --login -c /usr/sbin/sshd.exe

The program "run-rw.exe" is something I found in the list archive if cygwin.

Still no clean resolution to the problem,
Gérald




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-09-04 17:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-01 22:12 On Win98, connections hang when using remote command execution with SSHD Gerald Villemure
2001-09-04  3:33 ` Frank Wuebbeling
2001-09-04  3:39   ` Corinna Vinschen
2001-09-04  6:46     ` Frank Wuebbeling
2001-09-04 17:42   ` Gerald Villemure

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).