Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (PeWi, AndrewAMD, Quad, VoroneTZ), 463 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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