View Issue Details

IDProjectCategoryView StatusLast Update
0003753libmicrohttpdotherpublic2021-09-02 15:54
Reportertomasheran Assigned ToChristian Grothoff Due Date
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.41Fixed in Version0.9.41 
Summary0003753: test_quiesce fails if there's "11" anywhere in the path leading to the tests
DescriptionI believe test_quiesce.c depends on HTTP1.0 default behaviour (i.e. no keep-alive).
Unfortunatelly, the test can still be "told" to ask cURL to do HTTP1.1, if "11" substring was to be found in argv[0].

Now, if any element of the path leading to the subdirectory contained that substring, test_quiesce would be run in HTTP1.1 mode and eventually fail as the existing client connection would still be used even after the main deamon was quiesced and the ServerOneRequest thread (that handled the listening socket for a few seconds) exited.
Steps To ReproduceJust rename the package directory to libmicrohttpd-0.9.37-11 and watch test_quiesce fail.
Additional InformationOf course the problem is not limited to test_quiesce - *all* tests will be run in HTTP1.1 "mode", so no HTTP1.0 testing would be done whatsoever.

I propose fixing test_quiesce by hardwiring HTTP1.0 in there.

I propose fixing all the other tests (that can/should be legitimiately run in both HTTP1.0 and HTTP1.1 mode) by changing the argv[0] check in such a way that 11 substring will be looked for only at the end of argv[0] string.

E.g. oneone = NULL != strstr (argv[0], "11") && strlen(strstr(argv[0], "11")) == 2;
TagsNo tags attached.

Activities

Christian Grothoff

2015-04-14 22:52

manager   ~0009086

You're right, the way the testcase is written the test-logic doesn't work with pipelining and thus requires http 1.0. And yes, the 11-check should be fixed...

Christian Grothoff

2015-04-15 01:19

manager   ~0009087

Fixed in SVN 35537.

Christian Grothoff

2021-09-02 15:54

manager   ~0018198

Fix committed to master branch.

Issue History

Date ModifiedUsernameFieldChange
2015-04-10 12:27tomasheranNew Issue
2015-04-14 22:52Christian GrothoffNote Added: 0009086
2015-04-14 22:52Christian GrothoffStatusnew => confirmed
2015-04-14 22:52Christian GrothoffProduct Version => Git master
2015-04-14 22:52Christian GrothoffTarget Version => 0.9.41
2015-04-15 01:17Christian GrothoffAssigned To => Christian Grothoff
2015-04-15 01:17Christian GrothoffStatusconfirmed => assigned
2015-04-15 01:19Christian GrothoffNote Added: 0009087
2015-04-15 01:19Christian GrothoffStatusassigned => resolved
2015-04-15 01:19Christian GrothoffFixed in Version => 0.9.41
2015-04-15 01:19Christian GrothoffResolutionopen => fixed
2015-04-29 22:13Christian GrothoffStatusresolved => closed
2021-09-02 15:54Christian Grothoff
2021-09-02 15:54Christian GrothoffNote Added: 0018198