2009-01-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 15 Jan 2009 06:08:10 +0000 (06:08 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 15 Jan 2009 06:08:10 +0000 (06:08 -0000)
* HttpListenerRequest.cs: always initialize 'version'.
* HttpConnection.cs: the socket might already be disconnected when
shutting down.

svn path=/branches/mono-2-2/mcs/; revision=123454

mcs/class/System/System.Net/ChangeLog
mcs/class/System/System.Net/HttpConnection.cs
mcs/class/System/System.Net/HttpListenerRequest.cs

index 92bf3aed60b45a1bf5b88162405a0bd5fcf2f663..f649d185492993547336bca91cda8297f39e34da 100644 (file)
@@ -1,3 +1,9 @@
+2009-01-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpListenerRequest.cs: always initialize 'version'.
+       * HttpConnection.cs: the socket might already be disconnected when
+       shutting down.
+
 2009-01-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
 
        * WebConnectionStream.cs: if the buffer has been killed, return -1 for
index 7e535ec1221f19fbef5299dedccc2f68c647956b..56579dc49f255a7fb590d678c98be13a173df5a4 100644 (file)
@@ -324,6 +324,7 @@ namespace System.Net {
                                        sock = null;
                                        try {
                                                s.Shutdown (SocketShutdown.Both);
+                                       } catch {
                                        } finally {
                                                s.Close ();
                                        }
index 4df1e4623992531959c4c6bfa25e910b7e84f0da..18586fb2df2a33cae7c98bee51a39d0d06cbf1d0 100644 (file)
@@ -65,6 +65,7 @@ namespace System.Net {
                        this.context = context;
                        headers = new WebHeaderCollection ();
                        input_stream = Stream.Null;
+                       version = HttpVersion.Version10;
                }
 
                static char [] separators = new char [] { ' ' };