Commit graph

78 commits

Author SHA1 Message Date
dwetzel
111d1e14a3 changed flags, clean now
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30146 72102866-910b-0410-8b05-ffd578937521
2010-04-14 09:07:49 +00:00
dwetzel
c348aec6a2 fixed hopefully ;)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@28354 72102866-910b-0410-8b05-ffd578937521
2009-06-15 14:21:09 +00:00
dwetzel
12e227a1d7 added -g to include debug info as default
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@28353 72102866-910b-0410-8b05-ffd578937521
2009-06-15 14:07:31 +00:00
dwetzel
e73a76e856 GSWAdaptors/Apache2/mod_gsw.c:
* removed unused read_sock()
    * reformated read_sock_line()


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@28347 72102866-910b-0410-8b05-ffd578937521
2009-06-12 13:48:10 +00:00
dwetzel
bee03ed226 GSWAdaptors/Apache2/mod_gsw.c
* small cleanups
* copy all non-private headers to user

GSWeb.framework/GSWBindingNameAssociation.m
* remove unused code


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26443 72102866-910b-0410-8b05-ffd578937521
2008-04-09 21:04:56 +00:00
dwetzel
fa85c6c210 * only mark_refusing if x-webobjects-refusenewsessions header seen
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26406 72102866-910b-0410-8b05-ffd578937521
2008-03-30 23:24:42 +00:00
dwetzel
3f79035ff5 GSWAdaptors/Apache2/mod_gsw.c
* make load-balancing work
* add refusing to app status

GSWeb.framework/...
* rewrote GSWComponentRequestHandler to make refusing work



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26404 72102866-910b-0410-8b05-ffd578937521
2008-03-30 22:10:20 +00:00
dwetzel
50106dc443 various fixes. shared mem should work now :)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26335 72102866-910b-0410-8b05-ffd578937521
2008-03-17 22:52:18 +00:00
dwetzel
954dfae5e0 * fixed http status bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26272 72102866-910b-0410-8b05-ffd578937521
2008-03-11 14:46:33 +00:00
dwetzel
b6066a35c9 * small fix for newer APR
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26262 72102866-910b-0410-8b05-ffd578937521
2008-03-10 19:53:32 +00:00
dwetzel
d0771031ff * use shared memory to share application statistics across httpd processes
* first version of load balancing


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26261 72102866-910b-0410-8b05-ffd578937521
2008-03-10 17:15:30 +00:00
dwetzel
4fc53b0cea * read POST data before contacting the app
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26165 72102866-910b-0410-8b05-ffd578937521
2008-03-01 19:47:30 +00:00
dwetzel
e3e78d7c04 pass more info to the application
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26094 72102866-910b-0410-8b05-ffd578937521
2008-02-18 21:42:13 +00:00
dwetzel
d0a7e21741 fixed SERVER_PORT
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26013 72102866-910b-0410-8b05-ffd578937521
2008-01-31 00:14:23 +00:00
dwetzel
5c2fa414a8 send SERVER_PORT to App
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26012 72102866-910b-0410-8b05-ffd578937521
2008-01-30 23:25:35 +00:00
dwetzel
d436847431 * should be faster now. some cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25692 72102866-910b-0410-8b05-ffd578937521
2007-12-06 21:57:17 +00:00
dwetzel
011613065d * write x-webobjects-adaptor-version to the app
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25663 72102866-910b-0410-8b05-ffd578937521
2007-12-02 22:31:26 +00:00
dwetzel
ea8ca90177 * strip \r off on line end before \n
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25606 72102866-910b-0410-8b05-ffd578937521
2007-11-25 10:03:55 +00:00
dwetzel
9a776f343a minor comments. will clean this stuff later :)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25532 72102866-910b-0410-8b05-ffd578937521
2007-10-23 21:14:15 +00:00
dwetzel
69168f9959 2007-06-22 David Wetzel <dave@turbocat.de>
* GSWAdaptors/Apache2/mod_gsw.c
    * GSWSWeb.framework/GSWComponentRequestHandler.m
    * GSWeb.framework/GSWDefaultAdaptorThread.m

    Added support for POST requests from browsers without content-length header.
    (firefox does this without proxy)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25287 72102866-910b-0410-8b05-ffd578937521
2007-06-22 16:12:16 +00:00
dwetzel
f64550f135 made Application name clickable on status page
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25162 72102866-910b-0410-8b05-ffd578937521
2007-05-15 11:49:06 +00:00
dwetzel
0a0c436bbd added first version of native apache 2 module
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24977 72102866-910b-0410-8b05-ffd578937521
2007-04-10 17:51:22 +00:00
dwetzel
f576040019 Changed logging to include the file name and line number.
A logfile with "[debug] ../common/GSWUtil.c(165)" does not make much sense :-)
- GSWLog(GSW_WARNING,p_pLogServerData,
+ GSWLog(__FILE__, __LINE__, GSW_WARNING,p_pLogServerData,



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24219 72102866-910b-0410-8b05-ffd578937521
2006-12-19 22:41:28 +00:00
dwetzel
948191904b small cosmetic changes in spacing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24214 72102866-910b-0410-8b05-ffd578937521
2006-12-19 12:16:57 +00:00
ayers
f2d8311485 * GSWAdaptors/Apache/mod_gsweb.c: Add defines to support Apache 2.2.
* GSWAdaptors/common/GSWLoadBalancing.c
	(GSWLoadBalancing_FindInstance): Remove unsused variable.
	* GSWAdaptors/common/GSWStats.c (GSWStats_formatStats): Ditto.
	* GSWAdaptors/common/GSWURLUtil.c (GSWParseURL): Ditto.
	* GSWAdaptors/common/GSWHTTPResponse.c: Include netdb.h.
	* GSWAdaptors/common/GSWApp.c: Include time.h.
	(GSWAppInfo_MakeDictKeyName): Add parentheses to avoid compiler
	warning.
	* GSWAdaptors/common/GSWAppRequest.c
	(GSWAppRequest_SendAppRequestToApp): Add missing CONST declaration.
	* GSWAdaptors/common/GSWAppConnectSocket.c: Include unistd.h
	* GSWAdaptors/common/GSWConfig.c: Ditto.
	* GSWAdaptors/common/GSWConfig.h (g_pAppDict, config_mtime):
	Remove unused declarations.
	(GSWConfig_LoadConfiguration): Add missing declaration.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24201 72102866-910b-0410-8b05-ffd578937521
2006-12-12 13:52:36 +00:00
ayers
b56e4cb3c1 * GSWAdaptors/Apache/mod_gsweb.c (GSWeb_Handler): Avoid endless
loop when users abort transmission with temporary hack.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22186 72102866-910b-0410-8b05-ffd578937521
2005-12-19 11:05:35 +00:00
dwetzel
f9b617bb86 patch from david ayers to avoid endless loop
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22185 72102866-910b-0410-8b05-ffd578937521
2005-12-19 10:11:35 +00:00
ayers
5eab6c1214 * GSWAdaptors/common/GSWApp.h (GSWApp_New, GSWAppInfo_Init):
Correct prototype.
        * GSWAdaptors/common/GSWConfig.h (GSWConfig_GetConfig)
        (GSWConfig_CanDumpStatus, GSWConfig_AddTimeHeaders)
        (GSWConfig_IsDebug, GSWConfig_IsReaden)
        (GSWConfig_GetConfigFilePath, GSWConfig_AdaptorBuilt)
        (GSWConfig_ServerStringInfo, g_szGSWeb_AdaptorStringInfo)
        (GSWConfig_ServerURL, g_szGSWeb_AdaptorURL): Ditto.
        * GSWAdaptors/common/GSWString.h (GSWString_New): Ditto.
        * GSWAdaptors/common/GSWUtil.h (GSWTime_now)
        (GSWUtil_ClearHostCache): Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21229 72102866-910b-0410-8b05-ffd578937521
2005-05-16 11:36:38 +00:00
ayers
f81f7b32df * GSWAdaptors/Apache/configure.ac: Only add to CPPFLAGS if
ac_x_includes is set and only add LDFLAGS if ac_x_libraries
        set.  Refer to variables in consistent form.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21228 72102866-910b-0410-8b05-ffd578937521
2005-05-16 11:21:27 +00:00
ayers
00f397580c * GSWAdaptors/Apache/mod_gsweb.c: Rename GSWeb_Module to
gsweb_module for apxs integration.
        * INSTALL: Refer to GSWAdaptors/Apache/INSTALL for Apache
        specific installation instructions.  Move Apache specific
        installation instructions to GSWAdaptors/Apache/INSTALL.
        * GSWAdaptors/Apache/INSTALL: Update to new ./configure
        usage and new install and httpdconfig make targets.
        * GSWAdaptors/Apache/GNUmakefile.in: New file to build
        the adaptor module with apxs and apr-config.
        * GSWAdaptors/Apache/configure[.ac]: New files
        * GSWAdaptors/Apache/config.guess: Ditto.
        * GSWAdaptors/Apache/config.sub: Ditto.
        * GSWAdaptors/Apache/install-sh: Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21206 72102866-910b-0410-8b05-ffd578937521
2005-05-09 12:20:18 +00:00
ayers
cf2e31df61 * GSWAdaptors/common/GSWStats.c (GSWStats_formatStats):
Use standard strtod instead of the GNU extension strtof
        which is stored in a double anyway.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21184 72102866-910b-0410-8b05-ffd578937521
2005-05-03 20:20:42 +00:00
mguesdon
81ff20297b Fixes in GSWUtil.c and GSWAppRequest.c
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21022 72102866-910b-0410-8b05-ffd578937521
2005-03-31 18:31:22 +00:00
ayers
f2bebb40b7 * GSWAdaptors/common/GSWHTTPResponse.c
(GSWHTTPResponse_GetResponse): Move variable declarations to
        top of block for older compilers.
        * GSWAdaptors/common/GSWUtil.h (GSWAssert): Ditto.  Remove
        bogus call to GSWLog().
        * GSWAdaptors/common/GSWStats.c (GSWStats_formatStats): Remove
        statement from variable declations for older compilers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21020 72102866-910b-0410-8b05-ffd578937521
2005-03-31 05:36:27 +00:00
mguesdon
da7886eddf optimizations and small fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20507 72102866-910b-0410-8b05-ffd578937521
2004-12-31 14:33:16 +00:00
mguesdon
e4a71c56fa o Bug fixes
o Time statistics addition


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20489 72102866-910b-0410-8b05-ffd578937521
2004-12-27 16:33:24 +00:00
mguesdon
427efe3c07 Changes in GSWAdaptor:
o to handle unavailableUntil configuration parameters
o to better handle templates


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20317 72102866-910b-0410-8b05-ffd578937521
2004-11-08 14:15:59 +00:00
ayers
3e48c2837f * GSWAdaptors/common/common.make: Whitespace update.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19244 72102866-910b-0410-8b05-ffd578937521
2004-05-06 12:42:19 +00:00
ayers
de6a72cdd7 * GSWAdaptors/common/GSWTemplates.c (GSWTemplate_GetTemplate):
Don't call strlen(0) as that may segfault.  Reported by
        Matt Rice <ratmice@yahoo.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18925 72102866-910b-0410-8b05-ffd578937521
2004-03-26 15:05:03 +00:00
mguesdon
b8b720e89d o implement our own function for strndup if not compiled with
__USE_GNU. In other parts, we must use gsw_strndup instead of strndup.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18209 72102866-910b-0410-8b05-ffd578937521
2003-11-26 13:36:59 +00:00
mguesdon
457df43746 o fixed GSWHeaderTranslationTableItemsNb value to exclude null end
items. (bug reported by Philip Moetteli <Philip.Moetteli@tele2.ch>)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18208 72102866-910b-0410-8b05-ffd578937521
2003-11-26 13:36:16 +00:00
mguesdon
16ef7bc78f o use gsw_strndup instead of strndup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18207 72102866-910b-0410-8b05-ffd578937521
2003-11-26 13:35:43 +00:00
mguesdon
d38fed2f63 o switch to known app instance when requesting unknown instance
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18140 72102866-910b-0410-8b05-ffd578937521
2003-11-24 08:58:20 +00:00
mguesdon
8bb015671e o handle switchToKnownInstance parameter
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18139 72102866-910b-0410-8b05-ffd578937521
2003-11-24 08:57:59 +00:00
mguesdon
016067440c o added fSwitchToKnownInstance in GSWApp
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18138 72102866-910b-0410-8b05-ffd578937521
2003-11-24 08:57:37 +00:00
mguesdon
ad51672daa * GSWAdaptors/common/GSWHTTPHeaders.h/.m:
o added g_szHeader_GSWeb_ApplicationName
	* GSWAdaptors/Apache/mod_gsweb.c:
		o added application name header


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@17017 72102866-910b-0410-8b05-ffd578937521
2003-06-25 14:43:50 +00:00
mguesdon
d132a0842a 2003-04-19 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWAdaptors/Apache/mod_gsweb.c:
		o added debug logs
	* GSWAdaptors/common/GSWConfig.c:
		o added debug logs, removed duplicate
			pszParent string build
	* GSWAdaptors/common/GSWHTTPRequest.c:
		o logs


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@16484 72102866-910b-0410-8b05-ffd578937521
2003-04-19 18:55:05 +00:00
mguesdon
ebd0328cea 2003-04-09 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWAdaptors/common/GSWUtils.c:
		o prefix logs with GSWeb[pid]
	* GSWAdaptors/common/GSWAppRequest.c:
		o improved logs
	* GSWApp.c/.h:
		o add instance handled request count and no response count
	* GSWConfig.c:
		o remove "GSWeb:" prefix in logs
		o initialize
	* GSWApp.h:
		o renamed instance index
	* GSWLoadBalancing.c:
		o logs


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@16407 72102866-910b-0410-8b05-ffd578937521
2003-04-09 17:12:00 +00:00
mguesdon
d4a225d8c8 2003-04-09 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWSessionTimeOut.m:
		o fix in -description
	* GSWeb.framework/GSWApplication.m:
		o build currentRunLop before calling -run
		o log allFrameworks when a component is not found
	* GSWeb.framework/GSWHyperlink.m:
		o better handling of isSecure (regarding current request secure state)
	* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswd:
		o use "" pageName so application may choose the main page
	* GSWExtensions.framework/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.gswd:
		o use "" pageName so application may choose the main page
	* GSWeb.framework/GSWConstants.m/.h:
		o added GSWHTTPHeader_Protocol, GSWHTTPHeader_ProtocolNum,
			GSWHTTPHeader_RequestScheme
	* GSWeb.framework/GSWContext.m/.h:
		o fix in -_synchronizeForDistribution
		o try to avoid complete URL when we can use relative one
	* GSWeb.framework/GSWRequest.m:
		o fix to retrieve protocol & port from adaptor headers
	* GSWeb.framework/GSWSession.m:
		o fix in -appendCookieToResponse:
	* GSAdaptors/Apache/mod_gsweb.c:
		o fix for server port header


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@16400 72102866-910b-0410-8b05-ffd578937521
2003-04-09 12:03:17 +00:00
mguesdon
b9ab6589a3 2003-04-05 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWAdaptors/common/config.h:
		o change minor version
	* GSWAdaptors/common/GSWUtil.h/.c:
		o added FormatAPRTime
	* GSWAdaptors/common/GSWHTTPResponse.c:
		o added time headers in response (apache2 only)
	* GSWAdaptors/common/GSWHTTPRequest.c:
		o moved GSWebHeaderForHTTPHeader to GSWHTTPHeaders.c
		o add application headers (defined in gsweb.conf)
	* GSWAdaptors/common/GSWHTTPHeaders.c:
		o moved GSWebHeaderForHTTPHeader from GSWHTTPRequest.c
		o sort GSWHeaderTranslationTable
	* GSWAdaptors/Apache/mod_gsweb.c:
		o comments
		o added time headers in response (apache2 only)
		o fixed APACHE2/Apache2 ifdef
	* GSWAdaptors/common/GSWConfig.c/.h:
		o added addTimeHeaders parameter


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@16369 72102866-910b-0410-8b05-ffd578937521
2003-04-05 15:16:56 +00:00
mguesdon
18a8de530f 2003-04-04 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWAdaptors/Apache/GNUmakefile-Apache2x:
		o fix to find apxs2
	* GSWAdaptors/comon/GSWHTTPHeaders.h/.m:
		o added g_szHeader_GSWeb_Protocol, g_szHeader_GSWeb_ProtocolNum,
			g_szServerInfo_Protocol, g_szServerInfo_ProtocolNum,
	  		g_szServerInfo_RequestScheme, g_szHeader_GSWeb_RequestScheme
	* GSWAdaptors/Apache/mod_gsweb:
		o added module version with apache2
		o 1.x/2.x compatibility macro
		o fix header port
		o added protocol, protocol num and request scheme information


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@16361 72102866-910b-0410-8b05-ffd578937521
2003-04-04 18:24:19 +00:00