#1 2018-11-25 16:35:33

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

One second delay on HTTP POST if TCurlHTTP is uset

I discover a strange issue under Linux. Every POST request is took 1 second in TCurlHTTP.
This is because a "Expect: 100-continue" header is added by curl by default.

Server should respond with "100" see MDN, but Socket-based server in mORMot do not handle this header.

Even if we implement 100 response (i already implement) one second delay occurs in case of HTTP1.0 protocol is used.

So the best choice is to add a 'Expect:' header for non GET requests inside TCurlHTTP as in #154 pull request

@ab - please, merge it into master (and #153 also smile )

Offline

#2 2018-11-25 18:25:01

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,670
Website

Re: One second delay on HTTP POST if TCurlHTTP is uset

Offline

#3 2018-11-26 09:03:36

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: One second delay on HTTP POST if TCurlHTTP is uset

Ups. Small fix to aviod potential AV - pull #155. Sorry for mistake

Offline

Board footer

Powered by FluxBB