plz send me the attachments to my email
and i hope lukas will add these changes for v38

i dont have the code here with me now (im at work)
so tonight i will take a look at the blocking and non blocking methods




בתאריך 13/11/2006 12:05:13, Alexander Bauer <[EMAIL PROTECTED]> כתב:
My first message was rejected by the moderator. Why ?!?
So this message is without the attachments. If any one want
the attachments, please contact me per email.


Hello Amos,

as Lukas said the connection timeout is set by the OS. I had the same
problem, and has modified synapse a bit.
I added the property 'ConnectionTimeout' to TBlockSocket and
TSynaClient. If this Property is greater than 0, then the connection is
made in non-blocked mode, and the timeout comes after the specified seconds.
The default of the property is 0. So the connection is made in normal
(blocking) mode.

I use the modifications in TSMTPSend.Connect, if you need the
ConnectionTimeout in other higer level units,
you have to modify the connection function (see my TSMTPSend.Connect).
It's only one line like this:
FSock.ConnectionTimeout := ConnectionTimeout;

I use these modifications since more than a year without any problems.

I have attached the two units (from synapse 38b1), so you can use it.
Perhaps Lukas will implement the modifications in one of the next
Synapse release.

Alex


Amos schrieb:
> hi
> i had some cases i wanted to connect to a server
> and even though timeout is set, it never comes back
> sometimes for VERY long time and sometimes it just never comes back
>
> mayb it is a server problem but how can i handle this situation?
>
> thanks
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to