Delphi Indy HTTP.GET high cpu usage -


on first download there high cpu usage, later ok. problem exists since delphi xe7 , in xe8. in earlier versions think there low cpu usage. tested latest ssl files https://indy.fulgan.com/

thanks help.

procedure tform1.button1click(sender: tobject); var   idhttp: tidhttp;   idssl: tidssliohandlersocketopenssl;   dane: tmemorystream;  begin   idhttp := tidhttp.create;   idopensslsetlibpath(extractfilepath(paramstr(0)));   idssl := tidssliohandlersocketopenssl.create();   idhttp.request.accept := 'application/vnd.twitchtv.v3+json';   idhttp.iohandler := idssl;   idhttp.request.customheaders.addvalue('client-id', 'smb61nyd0vxmqdn9d3k735qbx41cdyg');   dane := tmemorystream.create;   try     idhttp.get('https://api.twitch.tv/kraken/streams?game=starcraft:%20brood%20war', dane);       dane.free;   end; end; 


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -