Граф коммитов

706 Коммитов

Автор SHA1 Сообщение Дата
Marek Habersack 9e599b0ed3 2007-04-13 Marek Habersack <mhabersack@novell.com>
* src/Mono.WebServer/BaseRequestBroker.cs: replace old code that
	used hashtables to store request data with arrays. Array is also
	used to acquire a unique request id. Previously the code used
	GetHashCode() to do that, incorrectly assuming that the return
	value from the method is unique. This caused frequent race
	conditions and crashes. The new code uses arrays sized at 200
	slots initially - this means it can handle up to 200 _concurrent_
	requests before it needs to resize the arrays.

	* src/Mono.WebServer/XSPApplicationHost.cs: make sure worker is
	not null before attempting to use it.

	* src/ModMonoApplicationHost.cs: make sure worker is not null
	before attempting to use it.


svn path=/trunk/xsp/; revision=75696
2007-04-13 21:53:14 +00:00
Miguel de Icaza 505fb9fd6b Revert patch 75192, we should find the real source of the problem
svn path=/trunk/xsp/; revision=75231
2007-03-30 19:28:33 +00:00
Marek Habersack a2613b44df Remove the comment as not valid
svn path=/trunk/xsp/; revision=75223
2007-03-30 18:17:52 +00:00
Marek Habersack 30f6a730fa Change the way nested Leave/Enter calls are handled.
svn path=/trunk/xsp/; revision=75194
2007-03-30 13:36:47 +00:00
Marek Habersack 4c3d650f23 2007-03-30 Marek Habersack <mhabersack@novell.com>
* src/Mono.WebServer/BaseRequestBroker.cs: protect access to the
	buffer in Read at least a bit. It can still be released by some
	other thread after or during Read.

svn path=/trunk/xsp/; revision=75192
2007-03-30 13:28:55 +00:00
Marek Habersack 5c8679468f 2007-03-30 Marek Habersack <mhabersack@novell.com>
* src/Mono.WebServer/Tracing.cs: added a utility class to help in
	tracing.

	* src/Mono.WebServer/Makefile.am (monowebserver_sources): added Tracing.cs

	* configure.in: Define TRACE together with WEBTRACE.

svn path=/trunk/xsp/; revision=75182
2007-03-30 10:34:40 +00:00
Marek Habersack 8625aa95e6 2007-03-30 Marek Habersack <mhabersack@novell.com>
* src/server.cs: move a line of common code out of ifdefs


svn path=/trunk/xsp/; revision=75180
2007-03-30 09:07:21 +00:00
Marek Habersack 4fba9e35e3 2007-03-30 Marek Habersack <mhabersack@novell.com>
* src/Mono.WebServer/Makefile.am (MCSFLAGS): support tracing if
	enabled.

	* src/Makefile.am (MCSFLAGS): support tracing if enabled

	* configure.in: add a parameter to enable conditional tracing.


svn path=/trunk/xsp/; revision=75179
2007-03-30 07:30:49 +00:00
Miguel de Icaza 3f53807bd4 2007-03-29 Miguel de Icaza <miguel@novell.com>
* src/ModMonoApplicationHost.cs: Do not try to call Close on a
	null stream (Stream can become null inside InnerRun) and this
	makes debugging with gdb harder. 

svn path=/trunk/xsp/; revision=75144
2007-03-29 14:53:07 +00:00
Miguel de Icaza dbb64f1de7 2007-03-28 Miguel de Icaza <miguel@novell.com>
* src/ModMonoRequest.cs: Only compute the data once.

	(GetClientBlock): if we get a -1, return the -1 to the client, do
	not try to call Read. 

svn path=/trunk/xsp/; revision=75120
2007-03-29 01:33:25 +00:00
Marek Habersack f74ba62fd0 2007-03-29 Marek Habersack <mhabersack@novell.com>
* src/ModMonoApplicationHost.cs: make sure request id is reset to
	-1 after we have unregistered it.


svn path=/trunk/xsp/; revision=75118
2007-03-28 22:05:08 +00:00
Wade Berrier 945fbfa422 * configure.in:
* src/Mono.WebServer/xsp-2.pc.in:
* src/Mono.WebServer/xsp.pc.in:
Use VERSION from configure.in in the .pc files (they were always
0.1 and 0.2 before, but this isn't useful since the files 
are xsp and xsp-2)


svn path=/trunk/xsp/; revision=73654
2007-03-02 20:15:06 +00:00
Miguel de Icaza b0da699617 Update
svn path=/trunk/xsp/; revision=71795
2007-01-27 19:45:44 +00:00
Wade Berrier e09e5bdfce Oops, fix ChangeLog date
svn path=/trunk/xsp/; revision=71692
2007-01-25 17:29:40 +00:00
Wade Berrier 00e913dbc0 * configure.in: version bump -> 1.2.3
svn path=/trunk/xsp/; revision=71683
2007-01-25 17:13:32 +00:00
Sebastien Pouliot 513773e993 In Tests.XSP.Security:
2007-01-08  Sebastien Pouliot  <sebastien@ximian.com>

	* ChangeLog: Track changes in tests.
	* Makefile: Build/run unit tests.
	* FileExtensionsTest.cs: Tests that try, by messing with the file 
	extensions, to retrieve the original source code of the web page.
	* DirectoryTraversalTest.cs: Tests that try, by messing with the path,
	to retrieve a file outside the webroot.
	* WebTestHelper.cs: Base class with helper methods for tests.

In .:
2007-01-08  Sebastien Pouliot  <sebastien@ximian.com>

	* webroot/*: Web files used for the tests.
	* NOACCESS: Test file that resides outside the web root directory.
	* README: Instruction about how to run the tests.

svn path=/trunk/xsp/; revision=70662
2007-01-08 16:40:57 +00:00
Marek Habersack d7704d0d0b Implement output header encoding support
svn path=/trunk/xsp/; revision=70560
2007-01-05 21:29:24 +00:00
Gonzalo Paniagua Javier 85af34c327 2006-12-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.WebServer/ApplicationServer.cs: set the server as stopped
	early on to prevent a possible nullref. Closes bug #80230.


svn path=/trunk/xsp/; revision=70003
2006-12-23 19:35:29 +00:00
Miguel de Icaza e9fe780e53 Improve manual page
svn path=/trunk/xsp/; revision=68230
2006-11-21 00:32:50 +00:00
Wade Berrier 291fd31128 version bump -> 1.2.1
svn path=/trunk/xsp/; revision=68079
2006-11-17 18:50:57 +00:00
Gonzalo Paniagua Javier b6b8c071b5 2006-11-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.WebServer/XSPWorkerRequest.cs: close the connection if
	there's an error reading the headers (including assembly loading
	exceptions due to a bad installation).

	* src/ModMonoApplicationHost.cs: kill the warning that everyone is
	worried about.


svn path=/trunk/xsp/; revision=68041
2006-11-16 23:26:16 +00:00
Wade Berrier 9e11ab6e5f version bump
svn path=/trunk/xsp/; revision=66576
2006-10-11 23:41:55 +00:00
Gonzalo Paniagua Javier 64a52e114e 2006-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.WebServer/ApplicationServer.cs: don't run BeginAccept when
	the server has been stopped. Fixes bug #79361.


svn path=/trunk/xsp/; revision=65253
2006-09-11 19:34:58 +00:00
Gonzalo Paniagua Javier dc50464d66 fix
svn path=/trunk/xsp/; revision=64962
2006-09-05 19:03:31 +00:00
Gonzalo Paniagua Javier d106f8e0e5 fix windows build
svn path=/trunk/xsp/; revision=64955
2006-09-05 17:48:03 +00:00
Sebastien Pouliot 6109473162 2006-09-03 Sebastien Pouliot <sebastien@ximian.com>
* src/Mono.WebServer/XSPApplicationHost.cs: Read from the stream, not 
	the socket as the socket data is encrypted when using SSL. Fix from 
	Jean-Francois Burdet.


svn path=/trunk/xsp/; revision=64827
2006-09-03 17:07:23 +00:00
Wade Berrier c21493e003 tag for 1.1.17
svn path=/trunk/xsp/; revision=64383
2006-08-25 19:35:11 +00:00
Wade Berrier dabba67a1a configure.in:
src/Makefile.am:
src/Mono.WebServer/Makefile.am: Add GACUTIL_FLAGS to make gac root dir package
friendly (Relative to DESTDIR)


svn path=/trunk/xsp/; revision=64277
2006-08-23 20:46:48 +00:00
Wade Berrier 40a0884976 Unbump configure.in number back to 1.1.16, otherwise
it breaks snapshot builds to have a 5 part version number.

svn path=/trunk/xsp/; revision=64271
2006-08-23 19:29:00 +00:00
Gonzalo Paniagua Javier ea070b1ae0 2006-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* configure.in:
	* src/mono.snk:
	* src/AssemblyInfo.cs.in:
	* src/Makefile.am:
	* src/Mono.WebServer/xsp-2.pc.in:
	* src/Mono.WebServer/xsp.pc.in:
	* src/Mono.WebServer/AssemblyInfo2.cs.in:
	* src/Mono.WebServer/AssemblyInfo.cs.in:
	* src/Mono.WebServer/Makefile.am:
	* src/AssemblyInfoModMono.cs.in:
	* src/mono.pub:
	* scripts/Makefile.am: xsp, xsp2, Mono.WebServer and Mono.WebServer2 are
	installed in the GAC now to avoid problems with the upcoming patch in
	the runtime.


svn path=/trunk/xsp/; revision=63843
2006-08-16 20:14:39 +00:00
Gonzalo Paniagua Javier cf7b3d1ee2 2006-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.WebServer/MonoWorkerRequest.cs:
	* src/Mono.WebServer/XSPApplicationHost.cs:
	* src/ModMonoApplicationHost.cs: display unexpected errors in
	ProcessRequest from the root domain, as it will help pinpoint deployment
	errors once the upcoming patch modifies the way assemblies are loaded
	in newly created domains.


svn path=/trunk/xsp/; revision=63815
2006-08-16 15:05:32 +00:00
Miguel de Icaza b2b5ea90b2 here too
svn path=/trunk/xsp/; revision=63774
2006-08-15 16:50:42 +00:00
Sebastien Pouliot ef1167f130 Add X.509 client certificate support for mod_mono
svn path=/trunk/xsp/; revision=63305
2006-08-03 16:06:08 +00:00
Wade Berrier b21277001c version bump
svn path=/trunk/xsp/; revision=62795
2006-07-20 07:44:34 +00:00
Gonzalo Paniagua Javier 62204b5ee6 2006-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/ModMonoApplicationHost.cs: don't prepend the file:// scheme, as
	it's currently breaking mod-mono-server 2.0.


svn path=/trunk/xsp/; revision=62778
2006-07-20 00:49:30 +00:00
Wade Berrier 6fd35146f6 configure.in: version bump
svn path=/trunk/xsp/; revision=62281
2006-07-05 21:33:21 +00:00
Gonzalo Paniagua Javier 51ffae55f0 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/Mono.WebServer/ApplicationServer.cs: when stopping the server,
	reset the 'started' variable. Fixes bug #78621.


svn path=/trunk/xsp/; revision=61721
2006-06-14 22:18:11 +00:00
Gonzalo Paniagua Javier c8a74929fa 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* tools/asp_state/asp-state.exe.config: 
	* tools/asp_state/asp-state2.exe.config: use FQDN.


svn path=/trunk/xsp/; revision=61380
2006-06-01 17:41:44 +00:00
Miguel de Icaza 74ee18982b mod_mono_server compilation depends on the OS, not on the command
svn path=/trunk/xsp/; revision=60798
2006-05-17 18:43:54 +00:00
Gonzalo Paniagua Javier b2d45d7e1e 2006-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/server.cs:
	* src/Mono.WebServer/XSPWorkerRequest.cs:
	* src/Mono.WebServer/BaseRequestBroker.cs:
	* src/Mono.WebServer/ApplicationServer.cs:
	* src/Mono.WebServer/XSPApplicationHost.cs:
	* src/Mono.WebServer/InitialWorkerRequest.cs:
	* src/Mono.WebServer/LingeringNetworkStream.cs:
	* src/Mono.WebServer/IWebSource.cs:
	* src/ModMonoApplicationHost.cs: accepting a connection and the initial
	read are now done asynchronously. SocketPool class and that Select are
	over now and xsp/mod-mono-server behave much better when getting many
	simultaneous connections.


svn path=/trunk/xsp/; revision=60518
2006-05-10 15:42:34 +00:00
Wade Berrier 09fa1af345 version bump
svn path=/trunk/xsp/; revision=59899
2006-04-26 00:12:56 +00:00
Gonzalo Paniagua Javier 740f8c39e8 2006-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* MonoWorkerRequest.cs: remove all the duplicated slashes and don't do
	an extra Replace on non-windows.


svn path=/trunk/xsp/; revision=59868
2006-04-25 20:16:19 +00:00
Miguel de Icaza 5236cbf571 Metadata is not exposed by Page.Header, remove
svn path=/trunk/xsp/; revision=59250
2006-04-08 19:06:29 +00:00
Gonzalo Paniagua Javier 0872f432f5 2006-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/server.cs: make the hash different when the last argument is an
	option (like a port number). Fixes bug #78034. Thanks to Hubert
	Fongarnand.


svn path=/trunk/xsp/; revision=59120
2006-04-06 16:50:29 +00:00
Chris Toshok 2d6b430323 update stuff about xsp2, and remove the docs about --profile=net_2_0
svn path=/trunk/xsp/; revision=58439
2006-03-24 16:42:43 +00:00
Robert Jordan da1e29c84c 2006-03-05 Robert Jordan <robertj@gmx.net>
* tools/dbsessmgr/dbsessmgr.cs: 
	* tools/dbsessmgr/dbsessmgr.exe.config:
	* man/dbsessmgr.1.in: make SQL statements and parameters
	provider independent/configurable. Fixes bug #77698.


svn path=/trunk/xsp/; revision=57588
2006-03-04 23:09:39 +00:00
Chris Toshok 9a7abc623c 2006-01-25 Chris Toshok <toshok@ximian.com>
* src/Mono.WebServer/Makefile.am: define NET_2_0 in the
	Mono.WebServer2.dll case.

	* src/Mono.WebServer/XSPWorkerRequest.cs: use ConfigurationManager
	in 2.0.

	* src/Makefile.am: define NET_2_0 in the
	xsp2.exe/mod-moon-server2.exe cases.

	* src/server.cs (AppSettings): use ConfigurationManager in 2.0,
	and isolate the ifdef here so everywhere else we can just use
	"AppSettings".
	(Main): s/ConfigurationSettings.AppSettings/AppSettings/

	* src/ModMonoWorkerRequest.cs: use ConfigurationManager in 2.0


svn path=/trunk/xsp/; revision=56046
2006-01-25 15:29:57 +00:00
Wade Berrier e17560d7f8 version bump
svn path=/trunk/xsp/; revision=55165
2006-01-06 19:04:32 +00:00
Gonzalo Paniagua Javier 2fb95a5f5f 2005-12-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* src/ModMonoRequest.cs: use UTF8 instead of the default encoding. Fixes
	bug #77074.


svn path=/trunk/xsp/; revision=54862
2005-12-27 10:25:48 +00:00
Wade Berrier 51ca4bed55 Bump version for release
svn path=/trunk/xsp/; revision=54397
2005-12-14 19:04:48 +00:00