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

405 Коммитов

Автор SHA1 Сообщение Дата
Miguel de Icaza 5fea2eedf1 Approved by Gonzalo
svn path=/trunk/xsp/; revision=35488
2004-10-29 22:06:24 +00:00
Miguel de Icaza 2c25847042 Version
svn path=/trunk/xsp/; revision=35466
2004-10-29 18:35:46 +00:00
Gonzalo Paniagua Javier fd8f9ba5bc 2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/XSPApplicationHost.cs: redirect on directories that are not
	the root virtual directory when the path does not end in '/'. Fixes bug
	#68082.

svn path=/trunk/xsp/; revision=35429
2004-10-29 04:55:34 +00:00
Ben Maurer 08293c7c12 2004-10-17 Ben Maurer <bmaurer@ximian.com>
* server/MonoWorkerRequest.cs (MapPath): avoid the
	concat here.

svn path=/trunk/xsp/; revision=35058
2004-10-17 15:46:54 +00:00
Gonzalo Paniagua Javier 835b97a5ad 2004-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ApplicationServer.cs: set the accepted socket to Blocking.

svn path=/trunk/xsp/; revision=34993
2004-10-14 13:33:37 +00:00
Ben Maurer 4811c76835 2004-10-03 Ben Maurer <bmaurer@ximian.com>
* server/ApplicationServer.cs: use UtcNow

svn path=/trunk/xsp/; revision=34644
2004-10-03 22:02:40 +00:00
Anirban Bhattacharjee af542d85a1 Image, text files and folders
svn path=/trunk/xsp/; revision=34597
2004-10-01 13:42:54 +00:00
Anirban Bhattacharjee 8af920ee87 Adding files and folders
svn path=/trunk/xsp/; revision=34596
2004-10-01 13:40:06 +00:00
Anirban Bhattacharjee 541cf15c9e New Directory
svn path=/trunk/xsp/; revision=34595
2004-10-01 13:36:20 +00:00
Gonzalo Paniagua Javier 1517358171 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* test/web_regularexpressionvalidator.aspx: improved example. Patch by
	Tomasz Rybak.

svn path=/trunk/xsp/; revision=34554
2004-09-30 12:01:51 +00:00
Ben Maurer 9184537ff3 commentification
svn path=/trunk/xsp/; revision=34539
2004-09-30 01:35:06 +00:00
Ben Maurer 470c4a3b79 2004-09-29 Ben Maurer <bmaurer@ximian.com>
* server/LingeringNetworkStream.cs: make the byte [] buffer
	static here. It is not of consequence what we write to the buffer
	so we may as well cache it.
	* server/XSPWorkerRequest.cs: Avoid String.Format related stuff,
	just append to the stringbuilder.

svn path=/trunk/xsp/; revision=34535
2004-09-30 00:58:58 +00:00
Ben Maurer b1dfe84845 2004-09-28 Ben Maurer <bmaurer@ximian.com>
* server/XSPApplicationHost.cs: rather than pass an ip addr
	across appdomains as a string, pass it as a long. this avoids
	the cost of making it into a string, and related allocations.

svn path=/trunk/xsp/; revision=34501
2004-09-28 23:18:46 +00:00
Gonzalo Paniagua Javier 19d66d127d 2004-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* configure.in: 1.0.2.99
	* server/ApplicationServer.cs: application server never dies.
	* test/web_table2.aspx: added missing runat attributes.

svn path=/trunk/xsp/; revision=34455
2004-09-27 23:40:50 +00:00
Gonzalo Paniagua Javier 92d3a2c6a7 no thumbnails here
svn path=/trunk/xsp/; revision=34440
2004-09-27 18:39:11 +00:00
Gonzalo Paniagua Javier d17c931433 2004-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* configure.in: 1.0.2.99

	* server/ApplicationServer.cs: allow unloading applications. Fixed
	warnings.

	* server/BaseApplicationHost.cs: when the domain is unloaded, tell
	the application server we don't exist any more.

	* server/BaseRequestBroker.cs: added some sanity checks.

	* server/IApplicationHost.cs: added Server to the interface.

	* server/ModMonoRequest.cs:
	* server/ModMonoWorkerRequest.cs:
	* server/ModMonoApplicationHost.cs: if apache is stopping, tell the
	application server to finish everything off.

	* server/XSPWorkerRequest.cs:
	* server/XSPApplicationHost.cs: fixed warnings.

	* server/server.cs: if running interactive, unload all applications
	before exiting.

svn path=/trunk/xsp/; revision=34317
2004-09-23 21:13:43 +00:00
Gonzalo Paniagua Javier e88820ce99 2004-09-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ApplicationServer.cs: make the server socket non-blocking and
	ignore any exception on Accept.

svn path=/trunk/xsp/; revision=33779
2004-09-12 19:38:40 +00:00
Ben Maurer f13ef99994 add comment
svn path=/trunk/xsp/; revision=33778
2004-09-12 19:29:08 +00:00
Ben Maurer ed77202bac 2004-09-12 Ben Maurer <bmaurer@ximian.com>
* server/server.cs: allow for clean exit (workaround)
	* server/XSPWorkerRequest.cs: avoid a remoting call.
	cache MemoryStreams
	* InitialWorkerRequest.cs: cache byte [] buffers.

svn path=/trunk/xsp/; revision=33777
2004-09-12 16:27:16 +00:00
Ben Maurer e93a311c9e ssh
svn path=/trunk/xsp/; revision=33774
2004-09-12 15:39:35 +00:00
Ben Maurer 340ddf69ac shhh
svn path=/trunk/xsp/; revision=33773
2004-09-12 15:38:34 +00:00
Gonzalo Paniagua Javier 631f67d387 2004-09-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* configure.in: added AM_MKDIR_P to make automake 1.8 happier.

svn path=/trunk/xsp/; revision=33342
2004-09-04 19:17:55 +00:00
Gonzalo Paniagua Javier fd6990a6a4 typo
svn path=/trunk/xsp/; revision=33123
2004-08-31 19:03:43 +00:00
Gonzalo Paniagua Javier 086d52b661 2004-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ApplicationServer.cs: don't set the socket timeout for
	mod-mono-server. Apache should take care of that.

	* server/BaseApplicationHost.cs:
	* server/BaseRequestBroker.cs:
	* server/ModMonoApplicationHost.cs: unregister the request in
	EndOfRequest event because under heavy load HttpRuntime.ProcessRequest
	might return immediately and queue the request for later processing.

	* server/XSPApplicationHost.cs: unregister the request when redirecting

	* server/MonoWorkerRequest.cs:
	* server/ModMonoWorkerRequest.cs:
	* server/XSPWorkerRequest.cs: RequestId is not part of
	MonoWorkerRequest interface.

svn path=/trunk/xsp/; revision=33112
2004-08-31 18:09:01 +00:00
Gonzalo Paniagua Javier 4cc6bd7bee 2004-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ApplicationServer.cs: ignore exceptions when setting socket
	options as there are systems that don't support them. Fixes bug #63031.

svn path=/trunk/xsp/; revision=32438
2004-08-17 16:15:40 +00:00
Gonzalo Paniagua Javier b39c321d3f 2004-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* nunit-tests/standalone/Makefile.am:
	* tools/nunitasp/source/NUnitAspTest/Makefile.am: fix distcheck on a
	clean system and remove warnings.

svn path=/trunk/xsp/; revision=31893
2004-08-04 20:06:50 +00:00
Gonzalo Paniagua Javier 3753bb1d7f 2004-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ModMonoWorkerRequest.cs: GetRequestHeader is case insensitive
	now. Thanks to Jan Jaros.

svn path=/trunk/xsp/; revision=31869
2004-08-04 15:56:31 +00:00
Gonzalo Paniagua Javier d9b43803ab 2004-08-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Makefile.am:
	* configure.in:
	* nunit-tests/standalone/Makefile.am:
	* scripts/.cvsignore:
	* scripts/Makefile.am:
	* scripts/script.in:
	* server/Makefile.am:
	* tools/asp_state/Makefile.am:
	* tools/dbsessmgr/Makefile.am:
	* tools/nunitasp/source/NUnitAsp/Makefile.am:
	* tools/nunitasp/source/NUnitAspTest/Makefile.am: added xsp and
	mod-mono-server scripts, remove .mdb files when cleaning.

svn path=/trunk/xsp/; revision=31750
2004-08-02 21:04:13 +00:00
Gonzalo Paniagua Javier ddabc3a1b3 2004-07-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ApplicationServer.cs: fix host matching in presence of *.
	Closes bug #61275.

	* server/ModMonoWorkerRequest.cs: don't duplicate the slash when setting
	a default file name that we know is not present.

svn path=/trunk/xsp/; revision=31661
2004-07-30 15:53:09 +00:00
Gonzalo Paniagua Javier e4f072c8d2 2004-07-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* configure.in: 1.0.1.
	* server/ApplicationServer.cs: don't timeout in Select when we only have
	the listener socket. Use real times for timeout.

svn path=/trunk/xsp/; revision=31618
2004-07-29 17:03:23 +00:00
Gonzalo Paniagua Javier 078fc6e3f7 2004-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ApplicationServer.cs: increased the backlog for listen, set
	accepted sockets read/write timeout to 15s and handle timeouts when
	reading request data before submitting the work item to the threadpool.
	* server/XSPApplicationHost.cs: don't write a 500 error response if
	we got an IOException when reading from the network stream.
	* server/XSPWorkerRequest.cs: if there's an IOException when reading
	the headers, just rethrow it.

svn path=/trunk/xsp/; revision=31587
2004-07-28 20:24:42 +00:00
Gonzalo Paniagua Javier 925c8085a7 2004-07-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ModMonoApplicationHost.cs: don't write the 50x error response
	to the stream. Just closing works and doesn't drive mod_mono crazy.

svn path=/trunk/xsp/; revision=31286
2004-07-19 16:24:21 +00:00
Gonzalo Paniagua Javier b957a1f970 semicolon->comma
svn path=/trunk/xsp/; revision=31165
2004-07-15 04:14:05 +00:00
Gonzalo Paniagua Javier d8392541d4 2004-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* test/Makefile.am:
	* test/chunked.ashx: the output of this handler should be chunked for
	1.1 clients and 1.0 clients that send the Accept-Encoding to 'chunked'.

svn path=/trunk/xsp/; revision=31105
2004-07-13 22:04:52 +00:00
Gonzalo Paniagua Javier fb83d29623 2004-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ModMonoApplicationHost.cs:
	* server/ModMonoRequest.cs:
	* server/ModMonoWorkerRequest.cs: when we can't find a suitable
	application, return NOT_FOUND to mod_mono.

svn path=/trunk/xsp/; revision=31061
2004-07-13 03:56:50 +00:00
Gonzalo Paniagua Javier 53258e798a tcp socket stuff
svn path=/trunk/xsp/; revision=30978
2004-07-10 02:00:17 +00:00
Gonzalo Paniagua Javier 92513be182 adjust last entry to 80 columns
svn path=/trunk/xsp/; revision=30977
2004-07-10 00:35:48 +00:00
Gonzalo Paniagua Javier 27668ce4a8 2004-07-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/Makefile.am: added ModMonoTCPWebSource.

	* server/ModMonoApplicationHost.cs: in ModMonoWebSource, CreateSocket is now
	virtual and the .ctor receives the file name as parameter.

	* server/ModMonoRequest.cs: prevent absurd string sizes if the socket is not
	in a expected state.

	* server/ModMonoTCPWebSource.cs: supports mod_mono communication over a TCP
	socket.

	* server/XSPApplicationHost.cs: XSPWebSource .ctor receives address and port as
	parameters.

	* server/server.cs: updated help, handle address and port in mod-mono-server.
	Choose TCP or unix socket IWebSource depending on the arguments.

svn path=/trunk/xsp/; revision=30976
2004-07-10 00:25:47 +00:00
Gonzalo Paniagua Javier aedfbde82b 2004-07-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/XSPWorkerRequest.cs: made the headers Hashtable case
	insensitive.

svn path=/trunk/xsp/; revision=30920
2004-07-09 07:07:00 +00:00
Gonzalo Paniagua Javier afff5cb8f9 less padding
svn path=/trunk/xsp/; revision=30880
2004-07-08 15:20:15 +00:00
Gonzalo Paniagua Javier 7067d65df1 2004-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/BaseRequestBroker.cs: Modified file.
	* server/ModMonoRequest.cs: more data cached on first read.
	* server/ModMonoWorkerRequest.cs: use Buffer.BlockCopy instead of
	Array.Copy.

svn path=/trunk/xsp/; revision=30864
2004-07-08 04:13:49 +00:00
Gonzalo Paniagua Javier a33bb4230d 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ModMonoApplicationHost.cs: remove the unix socket file when
	finishing.

	* test/Makefile.am: added missing files.

	* test/mono-xsp.css:
	* test/index.aspx: reduced size of the generated page.

svn path=/trunk/xsp/; revision=30811
2004-07-07 01:42:47 +00:00
Gonzalo Paniagua Javier db4dda3967 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* server/ModMonoApplicationHost.cs:
	* server/ModMonoWorkerRequest.cs:
	* server/ModMonoRequest.cs: removed unused method/options and the
	ack sent back after writing something. Unified setting status code
	and message into 1 single command.

svn path=/trunk/xsp/; revision=30806
2004-07-06 22:40:20 +00:00
Miguel de Icaza 9f06773475 1.0
svn path=/trunk/xsp/; revision=30525
2004-06-29 15:07:45 +00:00
Miguel de Icaza 51b81a90be Flush
svn path=/trunk/xsp/; revision=30340
2004-06-24 20:44:58 +00:00
Gonzalo Paniagua Javier 67096e73db 2004-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* configure.in: 0.15.99.
	* server/ApplicationServer.cs: added method in VPathToHost that tells
	if we're trying /xxx where xxx is a directory (ie, we need to redirec).

	* server/InitialWorkerRequest.cs: don't remove trailing '/' in
	GetSafePath ().

	* server/XSPApplicationHost.cs: handle redirects and fixed nullref.
	Closes bug #60478.

	* ChangeLog: style.
	* server/ModMonoApplicationHost.cs: splitted long lines.
	* server/MonoWorkerRequest.cs: style.

svn path=/trunk/xsp/; revision=30324
2004-06-24 17:25:32 +00:00
Gonzalo Paniagua Javier 4a095194be added 3 missing .png files
svn path=/trunk/xsp/; revision=30094
2004-06-22 07:20:46 +00:00
Lluis Sanchez f997661c65 * IApplicationHost.cs: Added RequestBroker property to IApplicationHost.
The application host will query for information through this object,
	  which lives in the main domain.

	* Makefile.am: Added new files.

	* ModMonoRequest.cs: Added position parameter in SendResponseFromMemory, so
	  we can send partially filled buffers.
	  GetClientBlock(): Some checks that where done in ModMonoWorkerRequest
	  have been moved here. We can avoid two cross-app domain calls in this
	  way.
	  Merged SetStatusCode and SetStatusLine into SetStatusCodeLine. We avoid
	  another cross-app domain call.

	* ModMonoWorkerRequest.cs: Renamed to ModMonoWorkerRequest, to make things
	  more understandable.
	  Removed all references to ModMonoRequest. All request information is
	  now available as input parameters or through the IRequestBroker.
	  Some old calls to ModMonoRequest have been merged into a single
	  IRequestBroker call, to avoid the overhead of a cross-app domain call.

	* XSPApplicationHost.cs: Most of the code has been moved to other classes:
	  ApplicationServer, WebSource, XSPWebSource, ModMonoWebSource...

	* XSPWorkerRequest.cs: Removed dependency to RequestData, since passing it
	  through the cross-app domain channel requires serialization support.
	  The same information is passed as primitive parameters.
	  In general, calls to the network stream are now done through the
	  IRequestBroker.

	* server.cs: Create the ApplicationServer by providing a ModMonoWebSource
	  or a XSPWebSource instance.

	* ApplicationServer.cs: New file. Moved here the old XSPApplicationServer.
	  Almost all code is now shared between XSP and mod_mono. Specific behavior
	  is now encapsulated in an IWebSource object.

	* LingeringNetworkStream.cs: New file. Moved here the old MyNetworkStream.

	* BaseApplicationHost.cs: New file. Moved here the old XSPApplicationHost.

	* WebSource.cs: New file. Defines the IWebSource and IWorker interfaces.

	* XSPApplicationHost.cs: New file. Provides an implementation for XSP
	  of a IWebSource, an IRequestBroker, an IApplicationHost and an IWorker.

	* ModMonoApplicationHost.cs: New file. Provides an implementation for
	  mod_mono of a IWebSource, an IRequestBroker, an IApplicationHost and an
	  IWorker.

svn path=/trunk/xsp/; revision=29988
2004-06-20 21:27:24 +00:00
Gonzalo Paniagua Javier ac054ca27b Write dump.log in the temp directory
svn path=/trunk/xsp/; revision=29971
2004-06-20 10:41:50 +00:00
Gonzalo Paniagua Javier 9c79321d1b 2004-06-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* test/Makefile.am: install extensions.dll into test directory so that
	ServiceClient.exe runs fine.

svn path=/trunk/xsp/; revision=29948
2004-06-19 16:37:27 +00:00