This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Multiple simultaneous sendtos on AF_UNIX socket broken.
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.1, Python 3.2, Python 2.7
Status: closed Resolution: duplicate
Dependencies: Superseder: Socket module is not thread-safe
View: 1544279
Assigned To: Nosy List: BreamoreBoy, bdbrunswick, skrah
Priority: normal Keywords:

Created on 2006-03-02 19:29 by bdbrunswick, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg60878 - (view) Author: Brian Brunswick (bdbrunswick) Date: 2006-03-02 19:29
Using the same AF_UNIX socket to do multiple
simultaneous calls to sendto from different threads,
the messages get their to address mixed up.

This is because of the use of a static per-socket
buffer s->sock_addr in Modules/socketmodule.c function
getsockaddrarg. It needs to be per thread.
msg109771 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-07-09 16:52
Brian to get this going forward could you provide a unit test for this?
msg109777 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2010-07-09 18:28
I'm almost certain that this has been fixed in issue 1544279. Setting
to pending. Brian, if you disagree, you can still respond to this issue.
msg110821 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-07-19 22:29
Closing as noone has responded.
Date User Action Args
2022-04-11 14:56:15adminsetgithub: 42970
2010-07-19 22:29:12BreamoreBoysetstatus: pending -> closed

messages: + msg110821
2010-07-09 18:28:17skrahsetstatus: open -> pending
2010-07-09 18:28:09skrahsetnosy: + skrah
messages: + msg109777
resolution: duplicate

superseder: Socket module is not thread-safe
stage: test needed -> resolved
2010-07-09 16:52:30BreamoreBoysetnosy: + BreamoreBoy

messages: + msg109771
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6
2009-03-21 00:45:55ajaksu2setstage: test needed
type: behavior
versions: + Python 2.6, - Python 2.4
2006-03-02 19:29:45bdbrunswickcreate