libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Messages queued by MHD not received by client


From: Bob Furber
Subject: Re: [libmicrohttpd] Messages queued by MHD not received by client
Date: Thu, 26 Feb 2015 20:26:40 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Ooops!

I stand corrected: MHD_create_response_from_callback() returns a non-NULL pointer to a MHD_Response struct and it has a reasonable address. But, I have not figured out how to examine the structure it is pointing at.

Bob F

On 15-02-26 08:10 PM, Bob Furber wrote:
I have a microhttpd based server program (mhdServer ) that happily serves files and more, when run on a 64-bit LinuxPC and is accessed through requests such as http://localhost:8080/filename.html.

However, porting this program to a remote 32-bit Arm-Linux platform is proving to be a challenge: It ALMOST WORKS: * It replies with a “404 File not found” response to requests for non-existing files ..as it should

But, requests for existing files do not get the anticipated reply:
* Client hangs waiting for requested web page files
* However, the web page is displayed by the client as soon as the mhdServer program is terminated!!

Examination of the mhdServer program with a remote debugger indicates that:
* All client requests are being received
* The requested files are indeed located and fopen'ed
* MHD_create_response_from_callback() returns MHD_YES (1)
* MHD_queue_response() returns 1, indicating success ..yet the client keeps waiting patiently for its response ..which only arrives upon mhdServer's dying breath

I have been banging my head against this for days. Can anyone suggest any tests that might shed light on this strange behaviour?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]