Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Socket Error # 0 - Restarting thread :-(
| Subject: | Socket Error # 0 - Restarting thread :-( |
| Posted by: | "Stephan Jaschke" (ne..@stj-software.de) |
| Date: | Mon, 26 Mar 2007 15:41:35 |
Stephan Jaschke schrieb:
> I've got a strange problem while sending mails via TIdSMTP.
> This is extremly annoying as on some PC it works on others it fails.
>
> If the error occurs once it will occur always afterwards even after reboot.
>
> After reinstalling the client PC everything is fine again
> but I've no idea what could cause or even mean "Socket Error # 0'.
the story continues ...
After upgrading to 9.00.50 and (changing the code accroding Remys
corrections) I still get an error on some machines:
10054 (WSAECONNRESET) Connection reset by peer.
I checked the connection and authentication details at least 5 times and
tried them also in Thunderbird and Outlook 2003 on the failing machine.
Believe it or not:
It works with Thunderbird/Outlook and fails with TIdSMTP with the same
settings. It is still working on other machines without any
modifications (still 9.00.10, same credentials)
I have no idea what might cause this fu***ing s**t happens :(
A couple of days ago I wrote:
"Don't touch it. No one will pay for the fix. Machines are reinstalled
and we'll wait for the next occurence (hoping this will never be :-))"
So it got me again :(
Now the questions (esp. for Remy):
1. What might cause the ISP to reset the connection?
Could it be a defective (intra)network?
I do not think so, as Thunderbird and Outlook could send the mails
without any probs.
2. A ISP host-reset or failure could be exclude as it's one of the
biggest ISP in Germany.
The SDK states additionally:
"This error may also result if a connection was broken due to
keep-alive activity detecting a failure while one or more operations
are in progress."
How could/may this happen?
3. SMTP is one of the simplest protocols. So I do not think it's a
protocol error (a lot of you are using TIdSMTP).
Does anybody has an idea or tool which might help to inspect and
analyze the prob?
4. Other ideas where to look or how to investigate the problem?
Any help and hint is welcome
Regards
(a desperate) Stephan
--
Logik ist die Kunst, zuversichtlich in die Irre zu gehen.
Stephan Jaschke - EDV-Beratung und Softwareentwicklung
Mail: support@stj-software.de - ICQ: 361511624