singe thread per connection



I need to implement the telnet using single thread for one telnet
connection. I saw one of the usage of this telnetd with four threads
for single connection. I need to open arround minimum of 500 telnet
connections. so it will not be good to have 500*4 threads. is there
any way in which i can create telnet connection with single thread for
single connection. When i say

InputStream is =new BufferedInputStream(process.getInputStream());
InputStreamReader read=new InputStreamReader(is);
BufferedReader input = new BufferedReader(read);
try {
int c;
while (0 != (c = is.read())) {
shellIo.write((char)c);
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
the read gets blocked here. and also if say in the read from the
client it goes blocked, so is there any way that i can do it using
single thread

thanks in advance
k.p
.



Relevant Pages

  • Re: singe thread per connection
    ... for single connection. ... I need to open arround minimum of 500 telnet ... InputStream is =new BufferedInputStream); ...
    (comp.lang.java.programmer)
  • [UNIX] mmmail POP3-SMTP Daemon Format String Vulnerability
    ... There is a format string vulnerability in the 'mmsyslog' function of the ... string that can be defined by a remote user. ... test:~$ telnet test.lab.intexxia.com 110 ... Connection closed by foreign host. ...
    (Securiteam)
  • Re: Sharing Internet access with a XP box.
    ... > connects to the Internet via a dial-up ISDN connection. ... > run a telnet client on the XP machine and connect to it from the BSD ... supported on FreeBSD and you have to jump through a couple of hoops to ... or, more generically, a server. ...
    (freebsd-newbies)
  • [CERT-intexxia] mmmail POP3-SMTP Daemon Format String Vulnerability
    ... mmmail POP3-SMTP Daemon Format String Vulnerability ... Successful exploitation of this flaw can allow a remote user to obtain ... test:~$ telnet test.lab.intexxia.com 110 ... Connection closed by foreign host. ...
    (Bugtraq)
  • Re: 45 days STUCK LIKE CHUCK. DNS / Mx record cant recieve emails
    ... I don't think it's Exchange since it's responding to telnet from the LAN. ... think it's the firewall, in which case it should be fixed if you run the ... still could be the Comcast router that's blocking the incoming connection. ... like Exchange not listening on the Internet NIC. ...
    (microsoft.public.windows.server.sbs)