FTP Problem

Hi,

I have created an image which uses inetd and provides ftp and telnet
services. I can connect to the ftp server from a remote client once. If I
close the session and disconnect, I cannot reconnect with the server unless
I reboot the server.

I am using the simple command line ftp client in Windows 2000, although I
have also tried several GUI clients. The Windows ftp client displays the
following:

Connected to 129.0.1.39.
Connection closed by remote host.

This comes up instantly when I try: `open 129.0.1.39’. If I reboot the
server, there is no problem.

Thank you,


Simon Platten, Senior Software Engineer

VT Controls
Bessemer Way, Harfreys Industrial Estate, Great Yarmouth, Norfolk, NR31 0LX.
Tel: (0)1493 668811 Fax: (0)1493 651137
Email: simon.platten@vtcontrols.co.uk

Any views or opinions expressed are solely those of the author and do not
necessarily
represent those of VT Group, its holding company or any of its subsidiaries
or associates.

Do you happen to have ftpd in a [data=u] instead of a [data=c] section
in your image?

chris


Simon A. Platten <simon.platten@vtcontrols.co.uk> wrote:

Hi,

I have created an image which uses inetd and provides ftp and telnet
services. I can connect to the ftp server from a remote client once. If I
close the session and disconnect, I cannot reconnect with the server unless
I reboot the server.

I am using the simple command line ftp client in Windows 2000, although I
have also tried several GUI clients. The Windows ftp client displays the
following:

Connected to 129.0.1.39.
Connection closed by remote host.

This comes up instantly when I try: `open 129.0.1.39’. If I reboot the
server, there is no problem.

Thank you,


Simon Platten, Senior Software Engineer

VT Controls
Bessemer Way, Harfreys Industrial Estate, Great Yarmouth, Norfolk, NR31 0LX.
Tel: (0)1493 668811 Fax: (0)1493 651137
Email: > simon.platten@vtcontrols.co.uk

Any views or opinions expressed are solely those of the author and do not
necessarily
represent those of VT Group, its holding company or any of its subsidiaries
or associates.


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Hi Chris,

The image was created using the Momentics IDE, using defaults when adding
the binaries, do you mean Data Segment = Use In Place' instead of Data
Segment = Copy’ ?

If so, it is set to the default which is Use In Place as are all the
binaries, what is the significance of this setting?

Thank you,
Simon

“Chris McKillop” <cdm@qnx.com> wrote in message
news:aqg2tm$n0r$1@nntp.qnx.com

Do you happen to have ftpd in a [data=u] instead of a [data=c] section
in your image?

chris


Simon A. Platten <> simon.platten@vtcontrols.co.uk> > wrote:
Hi,

I have created an image which uses inetd and provides ftp and telnet
services. I can connect to the ftp server from a remote client once.
If I
close the session and disconnect, I cannot reconnect with the server
unless
I reboot the server.

I am using the simple command line ftp client in Windows 2000, although
I
have also tried several GUI clients. The Windows ftp client displays
the
following:

Connected to 129.0.1.39.
Connection closed by remote host.

This comes up instantly when I try: `open 129.0.1.39’. If I reboot the
server, there is no problem.

Thank you,


Simon Platten, Senior Software Engineer

VT Controls
Bessemer Way, Harfreys Industrial Estate, Great Yarmouth, Norfolk, NR31
0LX.
Tel: (0)1493 668811 Fax: (0)1493 651137
Email: > simon.platten@vtcontrols.co.uk

Any views or opinions expressed are solely those of the author and do
not
necessarily
represent those of VT Group, its holding company or any of its
subsidiaries
or associates.


\

Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Thank you, I found some docs on this subject and it explained all…Use In
Place = run once !

Strange that this is the default…I wish the Windows IDE docs had a search
option.

Thanks again.

“Simon A. Platten” <simon.platten@vtcontrols.co.uk> wrote in message
news:aqg6ge$sb6$1@inn.qnx.com

Hi Chris,

The image was created using the Momentics IDE, using defaults when adding
the binaries, do you mean Data Segment = Use In Place' instead of Data
Segment = Copy’ ?

If so, it is set to the default which is Use In Place as are all the
binaries, what is the significance of this setting?

Thank you,
Simon

“Chris McKillop” <> cdm@qnx.com> > wrote in message
news:aqg2tm$n0r$> 1@nntp.qnx.com> …
Do you happen to have ftpd in a [data=u] instead of a [data=c] section
in your image?

chris


Simon A. Platten <> simon.platten@vtcontrols.co.uk> > wrote:
Hi,

I have created an image which uses inetd and provides ftp and telnet
services. I can connect to the ftp server from a remote client once.
If I
close the session and disconnect, I cannot reconnect with the server
unless
I reboot the server.

I am using the simple command line ftp client in Windows 2000,
although
I
have also tried several GUI clients. The Windows ftp client displays
the
following:

Connected to 129.0.1.39.
Connection closed by remote host.

This comes up instantly when I try: `open 129.0.1.39’. If I reboot
the
server, there is no problem.

Thank you,


Simon Platten, Senior Software Engineer

VT Controls
Bessemer Way, Harfreys Industrial Estate, Great Yarmouth, Norfolk,
NR31
0LX.
Tel: (0)1493 668811 Fax: (0)1493 651137
Email: > simon.platten@vtcontrols.co.uk

Any views or opinions expressed are solely those of the author and do
not
necessarily
represent those of VT Group, its holding company or any of its
subsidiaries
or associates.


\

Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I
get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/
\

Simon A. Platten <simon.platten@vtcontrols.co.uk> wrote:

Thank you, I found some docs on this subject and it explained all…Use In
Place = run once !

Strange that this is the default…I wish the Windows IDE docs had a search
option.

It is not the default for binaries actually. Did you start a project
by importing an existing buildfile? If so, could you email me the
buildfile you started with?

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Simon A. Platten <simon.platten@vtcontrols.co.uk> wrote:

Hi,

I have created an image which uses inetd and provides ftp and telnet
services. I can connect to the ftp server from a remote client once. If I
close the session and disconnect, I cannot reconnect with the server unless
I reboot the server.

Are you using inetd to start ftpd and telnetd?

Normally ftpd and telnetd are started by inetd…they live for that
one connect session…then exit. A new connect sesssion gets caught
by inetd, it starts a new ftpd/telnetd to handle that session, and
so on. If you’re just running ftpd, it will handle the one session
and exit…and there won’t be anyone on that port any longer.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.