[Mono-bugs] [Bug 590488] New: Not an exception when connecting to the socket.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 23 09:54:26 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=590488

http://bugzilla.novell.com/show_bug.cgi?id=590488#c0


           Summary: Not an exception when connecting to the socket.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: s.lipatov at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: No


Created an attachment (id=350043)
 --> (http://bugzilla.novell.com/attachment.cgi?id=350043)
Execution of code by native .NET platform and by Mono.

Description of Problem:
Have a code:
When server is not started (not listening port 5555) no exception is generated.

> > > using System;
> > > using System.Net.Sockets;
> > > namespace ConsoleApplication1
> > > {
> > >     class Program
> > >     {
> > >         static void Main()
> > >         {
> > >             Console.WriteLine("Hello, threads!");
> > >             try
> > >             {
> > >                 (new Socket(AddressFamily.InterNetwork,
> > SocketType.Stream,
> > > ProtocolType.Tcp)).Connect("127.0.0.1", 5555);
> > >             }
> > >             catch (Exception e)
> > >             {
> > >                 System.Console.WriteLine(e.Message);
> > >             }
> > >             Console.ReadKey();
> > >         }
> > >     }
> > > }


Steps to reproduce the problem:
1. Compile
2. Run


Actual Results:
Hello, threads!

Expected Results:
Hello, threads!
Exception message: Connection is not established...

How often does this happen? 
Always

Additional Information: running configuration - Mono 2.6.3 for Windows, Windows
XP SP3. screenshot is attached.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list