Commit Graph
774 Commits
Author SHA1 Message Date
Marek Safar 482e63b5bd Few corcompare fixes 2011-09-05 19:02:32 +01:00
Miguel de Icaza 6db9dc225c update copyrights 2011-08-17 00:52:41 -04:00
Gonzalo Paniagua Javier 07a679d371 Fix the range for rnd.Next() 2011-08-11 14:16:24 -04:00
Jeffrey Stedfast dbff4b9934 If #CONFIGURATION_DEP isn't defined, we still want to get a default proxy 2011-08-09 12:31:50 -04:00
Sebastien Pouliot a7ee25e84b Ensure the linker can eliminate the *RequestCreator code without extra instructions. 2011-07-20 08:28:42 -04:00
Sebastien Pouliot 1db32e3410 avoid potential InvalidCastException when we already deal with bad/non-present extensions (reduce error message when -E:all is used) 2011-07-19 10:34:57 -04:00
Jeffrey Stedfast 67e45d8ca4 Load the correct type for MacOSX (as opposed to iOS) 2011-07-06 12:06:12 -04:00
Jeffrey Stedfast 7715de7ad9 Implemented a shared way to do MacOSX detection in System.dll 2011-07-05 17:52:25 -04:00
Jeffrey Stedfast 057b426f7b Doh, do proper OSX detection 2011-07-05 17:00:58 -04:00
Jeffrey Stedfast 7bd517619a Use runtime detection to decide to use CoreFoundation.CFNetwork.GetDefaultProxy() 2011-07-05 16:31:47 -04:00
Jeffrey Stedfast 287a28b0fe On MonoTouch, call CoreFoundation.CFNetwork.GetDefaultProxy() to get the default proxy 2011-07-05 14:10:14 -04:00
Jackson Harper 01767e670e We can accidently swallow out of FD errors here since this function is called from a threadpool thread. 2011-06-28 23:22:44 -04:00
Gonzalo Paniagua Javier 2dad620baa Fix prefix selection
We were picking the wrong prefix when the URL matched the path.
	Fixes bug #688860.
2011-04-30 11:33:00 +02:00
Gonzalo Paniagua Javier 1ac0557bfc Support FTP + RETR + proxy
Fixes bug #690887.
2011-04-30 11:07:56 +02:00
Gonzalo Paniagua Javier d0d40cb751 [webclient] Process uri.UserInfo when present
If there are no crendetials, the Uri might have them.
	Based on a patch by QuickJack.
	Fixes bug #688007.
2011-04-29 11:53:19 +02:00
Gonzalo Paniagua Javier 4e7c632f10 Remove unused variable 2011-04-22 14:20:57 -04:00
Gonzalo Paniagua Javier 9cb7b97b30 [HttpListener] Fix matching directories
/foo was not properly matched.
	Fixes bug #688353.
2011-04-19 13:56:19 -04:00
Gonzalo Paniagua Javier 1411c9d420 [HttpWebRequest] Fix half-baked commit
Fixes bug #688100.
2011-04-18 10:56:57 -04:00
Gonzalo Paniagua Javier 5fbcc7cd2d [webclient] Only set the credentials when they are not null.
Setting the credentials to null makes FtpWebRequest throw.
	Fixes bug #688007.
2011-04-17 13:58:32 -04:00
Gonzalo Paniagua Javier 3eb2f54bb1 [HttpWebRequest] Ignore Transfer-Encoding when there's no content.
If the transfer encoding was set to chunked, we tried to read even when
	the response might known to have no content. This led to timeouts.

	Fixes bug #686371.
2011-04-09 15:18:00 -04:00
Gonzalo Paniagua Javier b311822694 [HttpWebResponse] Close and Dispose are different beasts.
After calling Close () on response you are still allowed to access its
	properties. Calling Dispose() causes the usual exception to be thrown
	when accessing the properties.

	Fixes bug #685368.
2011-04-06 23:01:39 -04:00
Gonzalo Paniagua Javier f6ba4f7b52 [HttpListener] Match exceptions from MS on cleanup.
When the listener is aborted or closed, we get different exceptions
	depending on whether there's a GetContext() call in progress or not.
2011-03-22 12:56:29 -04:00
Gonzalo Paniagua Javier b889755778 [HttpListener] request.Url.Original string matches MS now.
Fixes bug #681548.
2011-03-22 12:56:29 -04:00
Gonzalo Paniagua Javier 0b019a73d4 [HttpListener] Fix keep-alive connections
We were removing the connection in the wrong place.
	Also unbind the context in other error situations like a read failure
	after the headers are in.
2011-03-22 11:21:28 -04:00
Gonzalo Paniagua Javier 28fff74003 Remove NET_2_0 2011-03-17 18:53:39 -04:00
Gonzalo Paniagua Javier 79a054063a [HttpListener] Avoid contention
-Lock-free reads from registered listeners.
	-Don't register the context until *all* the setup steps are done.
2011-03-14 17:59:51 -04:00
Gonzalo Paniagua Javier 202e0a1a78 [HttpListener] Paranoid cleanup 2011-03-11 01:53:45 -05:00
Gonzalo Paniagua Javier d420dafa92 [HttpListener] Plug leak. 2011-03-11 01:46:04 -05:00
Gonzalo Paniagua Javier e4e0cb670f [HttpWebRequest] Only uppercase known methods 2011-03-10 19:05:26 -05:00
Gonzalo Paniagua Javier 36d63134e5 [Socket] Remove more auto-delegates 2011-03-10 19:05:17 -05:00
Gonzalo Paniagua Javier cc3d2b03ed [Socket] Minimize allocations of delegates 2011-03-10 19:05:13 -05:00
Gonzalo Paniagua Javier ca0b488707 [HttpListener] Avoid blocking in FlushInput 2011-03-10 19:04:34 -05:00
Gonzalo Paniagua Javier 87ee560127 [HttpListener] Memory use reductions 2011-03-10 00:44:56 -05:00
Gonzalo Paniagua Javier 75c12dbd2c Turn the method to upper case.
Fixes bug #675731.
2011-03-08 17:35:35 -05:00
Sebastien Pouliot 3dbfe75434 Fix parameters names inside System.Net.dll for 2.1 profile
* System.Net/System.Net.Sockets/SocketException_2_1.cs:
* System.Net/System.Net/WebClient_2_1.cs:
* System.Net/System.Net/WebRequest_2_1.cs:
* System/System.Net.Sockets/Socket_2_1.cs:
* System/System.Net/Cookie.cs:
* System/System.Net/DnsEndPoint.cs:
* System/System.Net/EndPoint.cs:
* System/System.Net/IPAddress.cs:
* System/System.Net/IPEndPoint.cs:
* System/System.Net/SocketAddress.cs:
	Remove all red ! from corcompare in System.Net.dll (Silverlight
	4 profile) to make it easier to pinpoint other errors/warnings.
2011-02-15 08:38:06 -05:00
Gonzalo Paniagua Javier eae45fd704 [HttpListener] Close idle connections on Stop()
Idle connections that never received any data or had ever been
	associated to a listener are properly closed now when the endpoint is
	closed or the last listener they used is closed.
	Fixes a bunch of tests in System.ServiceModel.
2011-02-15 01:52:50 -05:00
Gonzalo Paniagua Javier 6450a342e5 [HttpWebRequest] EndGetResponse already does this. 2011-02-14 14:36:14 -05:00
Gonzalo Paniagua Javier c033e6dea6 [HttpListener] UserHostName includes the port. 2011-02-14 14:35:06 -05:00
Gonzalo Paniagua Javier 274c05b8a6 [HttpListener] These lines were not supposed to be there. 2011-02-14 12:30:13 -05:00
Gonzalo Paniagua Javier 2fa2ca3565 [HttpWebRequest] Use the timeout in GetResponse()
The timeout was not being used in GetResponse.
	Fixes bug #603794.
2011-02-13 15:01:29 -05:00
Gonzalo Paniagua Javier e940d4fa30 [HttpWebRequest] Avoid nullref on empty cookie header.
If the Set-Cookie header is empty, the cookie instance is not created.
	Fixes bug #670189.
2011-02-13 14:53:59 -05:00
Gonzalo Paniagua Javier b061ae7569 [HttpListener] Small improvements
Less allocations in managed and unmanaged code.
2011-02-13 08:18:57 -05:00
Gonzalo Paniagua Javier a9de626f74 [HttpListenre] Avoid multiple calls to Close()
HttpListenerResponse could be calling HttpConnection.Close() more than
	once.
2011-02-13 07:06:55 -05:00
Gonzalo Paniagua Javier b1248b22e4 [HttpWebRequest] Can't ignore erros here 2011-02-10 17:25:15 -05:00
Gonzalo Paniagua Javier b92b165ddb [HttpWebRequest] Error handling for POST/PUT
When we get an error from the server before writing an entire
	unbuffered response, the server might close the connection leading to
	write errors. Ignore those and return the actual HTTP status code from
	the original server error.
2011-02-10 17:25:15 -05:00
Gonzalo Paniagua Javier f4c13c06c7 Allow forcing HTTP protocol version
If the version is manually set, ignore the version from the service
	point when set.

	Fixes bug #668199.
2011-01-31 10:48:37 -05:00
Gonzalo Paniagua Javier a554acdc4f [HttpListener] Set each cookie in its own header
Send a Set-Cookie header per cookie instead of a Set-Cookie2 with
	multiple cookies.

	Fixes bug #667550.
2011-01-27 15:46:15 -05:00
Gonzalo Paniagua Javier b688d53ce7 [HttpListener] Fix incorrect 411 error
Don't send a 411 for unknown methods without content length.
	No need to assign input_stream until requested.

	Fixes bug #666251.
2011-01-21 23:53:05 -05:00
Gonzalo Paniagua Javier c6b1dd9db3 [HttpWebRequest] New 4.0 AddRange overloads. 2011-01-18 18:56:32 -05:00
Gonzalo Paniagua Javier fb13ef43ce [HttpWebRequest] Support 4.0 Date property. 2011-01-18 16:44:12 -05:00