[Mono-bugs] [Bug 652181] New: TCP sockets code doesn't work in mono

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 8 16:42:53 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=652181

https://bugzilla.novell.com/show_bug.cgi?id=652181#c0


           Summary: TCP sockets code doesn't work in mono
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: jmealing3 at verizon.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer
           Blocker: ---


John Mealing <jmealing3 at verizon.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Flag|                            |SHIP_STOPPER?

Created an attachment (id=399058)
 --> (http://bugzilla.novell.com/attachment.cgi?id=399058)
source code for client

Description of Problem: Built a simple console server and client using TCP and
C#. When run using MS CLR, it runs fine. Built with VS 2008 or Mono, still runs
fine in MS CLR. NEITHER Run in Mono.

Steps to reproduce the problem:
1. Build both with mono or VS 2008
   a. See MSDN article on AddressFamily for equivalent server code
   b. My server is multi-threaded
2. Run in mono

Actual Results:
   a. Server terminates with AddressFamilyNotSupported - but docs says it is
and it compiles
   b. client crashes with:
Unhandled Exception: System.Net.Sockets.SocketException: No connection could be
made because the target machine actively refused it.

  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000]
in <filename unknown>:0
  at ConsoleSocketClient.GetSocket.ConnectSocket (System.String server, Int32
po
rt) [0x00000] in <filename unknown>:0
  at ConsoleSocketClient.GetSocket.SocketSendReceive (System.String server,
Int3
2 port) [0x00000] in <filename unknown>:0
  at ConsoleSocketClient.GetSocket.Main (System.String[] args) [0x00000] in
<fil
ename unknown>:0


Expected Results:
Both should run and exchange messages

How often does this happen? every time I try to run in mono


Additional Information:

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


More information about the mono-bugs mailing list