Delphi Indy Socket Error 10054
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about socket error 10054 connection reset by peer delphi hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Delphi Indy Socket Example
Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each
Socket Error 10054 Ftp
other. Join them; it only takes a minute: Sign up Delphi + TidSMTP.Connect + Socket Error 10054 - Connection Reset by Peer up vote 0 down vote favorite I have a Delphi application which uses TidSMTP to send emails,
Windows Socket Error 10054
well is supposed to. When tested on our local mail server it works fine but as soon as I set it up to work with the external mail server I get the socket error 10054 - Connection Reset by Peer when it trys to perfrom the l_idSMTP.connect line of code I have setup the account I wish to use to send emails in Outlook on the same machine and it is able to successfully send emails so I netsis socket error 10054 am not sure why the Delphi application on the same machine is not? Below is my code try l_pConfigurator := TConfigurator.Create; l_idSMTP.Username := l_pConfigurator.SMTPUser; l_idSMTP.Password := l_pConfigurator.SMTPPass; l_idSMTP.Host := l_pConfigurator.SMTPHost; l_idSMTP.Port := strtoint(l_pConfigurator.SMTPPort); if l_pConfigurator.SMTPAuth = 'LOGIN' then begin l_idSMTP.AuthenticationType := atLogin; end; finally FreeAndNil(l_pConfigurator); end; l_idSMTP.Connect(30000); if l_idSMTP.Connected then l_idSMTP.Send(l_idMsg); Any assistance will be greatly appreciated delphi connection reset peer share|improve this question asked Sep 6 '13 at 11:53 MarkZA 364 2 Did you try to send a mail interactive from the command line using Telnet? (And are you sure that Outlook uses SMTP to talk to the server?) –mjn Sep 6 '13 at 14:54 Which version of Indy are you using? Connect(30000) looks like Indy 9. In Indy 10, use ConnectTimeout := 30000; Connect; instead. –Remy Lebeau Sep 6 '13 at 15:21 Maybe your ISP/ICP is blocking TCP port 25 –iMan Biglari Sep 7 '13 at 17:30 I will test with Telnet and try verify what Outlook is using. I configured Outlook the same way I did my application so assume it is SMTP –MarkZA Sep 8 '13 at 6:49 Yes the version I am using is Indy 9 –MarkZA Sep 8 '13 at 6:50 | show 1 more comment active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Face
with message 'Socket Error # 10054 Connection reset by peer.'. I'm using Indy 9. wsa error 10054 Thanks, Gerry Mike B Delphi Developer 2005-07-12 01:53:43 AM Re:Socket Error 10054 The connection with the remote computer was interupted for some reason. Mike "Gerry"
PROCEDURE LOG IP DEC OPEN Terms Explained Begin Connection End Exception ITeM Server Handling Indy10 exceptions - Socket Error #10054 Connection reset by peer Subject: Handling http://embarcadero.newsgroups.archived.at/public.delphi.internet.winsock/201211/1211027963.html Indy10 exceptions - Socket Error #10054 Connection reset by peer Posted https://groups.google.com/d/topic/borland.public.delphi.internet.winsock/iF66SD-lSE0 by: Jay Dee Date: Fri, 2 Nov 2012 Hi there everyone, I am using Indy10 TCP Server/Client and I'm thinking of a way to handle an exception of type socket error #10054 - connection reset by peer. This sort of error can happen accidentally error 10054 for example if the client computer experiences a sudden power failure or the client program is "killed" in the Task Manager. Server side, I have a listview that shows all connected clients. So whenever a socket error #10054 happens, the server MUST remove the client from the listview and return the client's database connection socket error 10054 to a connection pool. That is what I've tried to do below with OnServerException. However I noticed that whenever this procedure runs, I have memory leaks. Apart from that, my server program has no memory leaks at all. What do you think I'm doing wrong and how can I correct it? N.B The connection pool is based on Cary Jensen's connection pool example on this same site {code} procedure TfrmServer.ServerException(AContext: TIdContext; AException: Exception); (* What to do if there is an accidental/deliberate system disconnect of a client *) var Item: TListItem; ClientContext: TClientContext; begin // Hard cast AContext to TClientContext ClientContext := TClientContext(AContext); // Logs any server exceptions to the Process Log if (AException is EIdSilentException) or (AException is EIdNotConnected) then begin Exit; end; if AException is EIdSocketError then begin ShowMessage('Exception for Client at IP ' + AContext.Binding.PeerIP + ' on Port ' + IntToStr(AContext.Binding.PeerPort) + '. ' + AException.Mes
van GoogleInloggenVerborgen veldenZoeken naar groepen of berichten