Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: Telnet error

www.cryer.info
Managed Newsgroup Archive

Re: Telnet error

Subject:Re: Telnet error
Posted by:"Ferenc Nemeth" (ferenc.neme..@interticket.hu)
Date:Thu, 29 Jun 2006 09:01:28

Remy Lebeau (TeamB) wrote:
> "Ferenc Nemeth" <ferenc.nemeth@interticket.hu> wrote in message
> news:44a29a86@newsgroups.borland.com...
>
>> If you have an error seems like this then you should edit the
>> IdTCPServer unit,
>> function TIdCommandHandler.Check...
>
> Why?  If there is a socket error, then the data won't be sent anyway.  The
> buffering doesn't gain you anything, and it just wastes extra memory for
> large responses.
>
There is no socket error. I had to debug the telnet server to solve this
problem. I have this error for a year. I inserted debug lines in the
Check procedure and saw that Response.Count is about 1000. then next
AThread.Connection.WriteRFCStrings(Response); only sent back about 20 bytes.

Yes there is an extra memory buffer that is working for me in a usable
application. I dont use telnet to post extra large data. Only for
administrating an application server.

> What exactly are you having a problem with that you are trying to fix?
>
I have a previous post. I tried to write my problem in there. It is not
too easy.
>
We have some application server in different countries. This error
appears in the 20% of the servers.

Our main hungarian server is at: www.interticket.hu Two month ago we
should change the machine to another. There is a Windows XP english
version updated with the last patches. Since this change I cannot use
telnet to administrate this server. This was the last, that drives me to
solve this problem.

There is about 30 command handler in the telnet server. Some usable some
not. One of them is listing the ini file of the application server. I
know that this function always wrong where this interesting error appears.

I write a test project. Only a form with a telnet server and only 1
command handler. Which lists this server.ini. I can send you this
project is you like. I tried it a lot of telnet client, command line or
not. If I connect to the telnet server from another machine then the
error happens. If I connect to the server from the same machine, there
is no error.

If you would like to write me a test application which sends back a
server.ini I will put this app. to te server and you can try if it works
or not.

Sorry I cannot explain perfectly this problem because my English is not
good enough.

> Gambit
>
>

best regards
Feri

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive