Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in Java FTP by (180 points)
Hi all,
I'm currently facing a problem while using TelnetClient.
With this modified piece of code, my Java Applet, opens a telnet socket to an IP, and runs telnet commands (using the output stream associated to the socket) on that particular IP.
The input stream associated to the socket is used to read the output of the command executed.
When any user telnets to the same IP, he gets blocked since the command is running from the Java Applet. But once the collection of the output is over (from the input socket), I'm disconneting the connection - closing the socket, making the input/output stream = null.
Even after disconnecting the socket, the telnet user is getting blocked..and telnet is not proceeding.

Is it that Java environment is blocking something?????

Please help.

Thanks in advance.
BR
Shamik

2 Answers

0 votes
by (180 points)
Forgot to mention in the last post that once the Java Applet from where the socket was opened is closed completely, the telnet session from the user is resumed. That is the telnet session opened the user, which was blocked resumes again.

I feel that this is because of the Java environment not releasing the resources it capured. But I'm explicitly calling disconnect(), where it is making the socket, input and output stream associated to null.

Please help.
BR
Shamik
0 votes
by (162k points)
I'm not sure what this has to do with FTP or our products.

Categories

...