[BusyBox 0000608]: The httpd doesn’t work properly on debug mode.

bugs at busybox.net bugs at busybox.net
Mon Dec 26 08:27:34 UTC 2005


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=608 
====================================================================== 
Reported By:                flowtide
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   608
Category:                   Networking Support
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             12-19-2005 22:07 PST
Last Modified:              12-26-2005 00:27 PST
====================================================================== 
Summary:                    The httpd doesn’t work properly on debug mode.
Description: 
Without fork() using handleIncoming() function several times doesn't work
except first request.

Because global variable config->httpd_found.found_moved_temporarily was
set during first request and remained.
So next request will be failed always because below line is always true.
if(config->httpd_found.found_moved_temporarily) {
	sendHeaders(HTTP_MOVED_TEMPORARILY);
}

So put the line before exiting handleIncoming() function
config->httpd_found.found_moved_temporarily = NULL;


====================================================================== 

---------------------------------------------------------------------- 
 vodz - 12-20-05 03:05  
---------------------------------------------------------------------- 
Ok. I removed debug feature for production version. ;-)
See SVN 12954. 

---------------------------------------------------------------------- 
 flowtide - 12-25-05 20:04  
---------------------------------------------------------------------- 
Not even for debug mode, using handleIncoming() function without fork() is
desirable when we really need small web server.
Because it doesn't need to invoke another httpd process and so overall
resource requirement is very small.
I wish you to support compile time flag whether it uses fork() or not.
And I have no problem at all using httpd without fork() for every request. 

---------------------------------------------------------------------- 
 vodz - 12-26-05 00:27  
---------------------------------------------------------------------- 
> I wish you to support compile time flag whether it uses fork() or not.

Without fork() httpd can usage in inetd-mode. 
Other methods without wait accept() for a networking daemons is not exist
in wordl. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-19-05 22:07  flowtide       New Issue                                    
12-19-05 22:07  flowtide       Status                   new => assigned     
12-19-05 22:07  flowtide       Assigned To               => BusyBox         
12-20-05 03:05  vodz           Note Added: 0000803                          
12-25-05 20:04  flowtide       Note Added: 0000811                          
12-26-05 00:27  vodz           Note Added: 0000812                          
======================================================================




More information about the busybox-cvs mailing list