Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, SBGuy), 987 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Degraded performance for http_transfer with data arg >1k #447233
11/27/14 07:45
11/27/14 07:45
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
I am using http_transfer to communicate with a server running locally which does some work, then responds with some data. A typical round trip is < 0.1 seconds.

I find that when the data argument to http_transfer is larger than about 1000 bytes, every call blocks for 1-2 seconds before my http server receives the POST.

This issue also affects http_post.

Re: Degraded performance for http_transfer with data arg >1k [Re: GPEngine] #447284
12/01/14 17:57
12/01/14 17:57
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I suppose that the reason might be the MTU of 1000 bytes. Above that limit, multiple packets are sent.

Re: Degraded performance for http_transfer with data arg >1k [Re: jcl] #447368
12/08/14 06:53
12/08/14 06:53
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Good gues but the delay doesn't scale linearly.

At the moment it looks like some bad interaction between Zorro and Python SimpleXMLRPCServer. I'll do some more experiments and let you know if I find anything. But my visibility is limited.

Re: Degraded performance for http_transfer with data arg >1k [Re: GPEngine] #447393
12/09/14 09:22
12/09/14 09:22
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
As to my knowledge, Zorro uses the CURL library for http posts (http://curl.haxx.se/)


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1