I usually abort the http socket directly, like:
Http.Sock.AbortSocket();
where Http is a THTTPSend object.
This way any blocking function returns immediately.
Arthur.
2010/10/13 Lukas Gebauer <[email protected]>
> > I have THTTPSend created and running in thread. Can I somehow safely
> > abort connection from main thread when THTTSend.HTTPMethod takes too
> > long? This socket have procedure Abort:
>
> Abort just set flag and this flag is checked inside read/write
> Synapse operations. However when socket is in blocking state, then is
> not possible to check this flag.
>
> As solution you can enable Heartbeats on the socket. Each heartbeat
> checking abort flag too.
>
>
>
> --
> Lukas Gebauer.
>
> http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
> http://geoget.ararat.cz/ - Geocaching solution
>
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>
--
Arthur Pires Ribeiro Silva
Faculdade de Engenharia Elétrica
Universidade Federal de Uberlândia
Contato: +55 (34) 9674-0720
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public