[ python-Bugs-1462440 ] udp multicast setsockopt fails

SourceForge.net noreply at sourceforge.net
Wed Apr 5 14:57:46 CEST 2006


Bugs item #1462440, was opened at 2006-03-31 15:16
Message generated for change (Comment added) made by abgrover
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1462440&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Alan G (abgrover)
Assigned to: Nobody/Anonymous (nobody)
Summary: udp multicast setsockopt fails

Initial Comment:
Using setsockopt to join a multicast group for a udp
socket fails on windows (works on linux).

Test reproduction:
run the attached file

expected behavior:
The snd thread sends three udp packets to the multicast
address.  The rcv thread reads three udp packets.

observed behavior on linux:
the expected behavior

observed behavior on windows:
Exception in thread rcv:
Traceback (most recent call last):
  File "C:\Python24\lib\threading.py", line 442, in
__bootstrap
    self.run()
  File "C:\Python24\lib\threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File
"E:\svn\TTC\trunk\agrover\src\SmcTestCase\multicastbug.py",
line 12, in rcv
    s.setsockopt(SOL_IP, IP_ADD_MEMBERSHIP, sopt)
  File "<string>", line 1, in setsockopt
error: (10022, 'Invalid argument')

----------------------------------------------------------------------

>Comment By: Alan G (abgrover)
Date: 2006-04-05 06:57

Message:
Logged In: YES 
user_id=1098341

More details of config:

Windows used is XP Pro SP2
Linuxen used include Fedora Core and Mandrake

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1462440&group_id=5470


More information about the Python-bugs-list mailing list