Comment 4 for bug 888328

Revision history for this message
Jan Bee (jbe-g) wrote :

I was able to reproduce this in kernel 3.0 and 3.2. This seems to be a timing issue and can be isolated in a simple socket-connection (using python-lightblue in this case):

sock = lightblue.socket()
sock.connect((addr, port))
# adding a sleep of a couple of seconds made it work more reliable
sock.send(data)

stracing that shows:

socket(PF_BLUETOOTH, SOCK_SEQPACKET, 0) = 4
connect(4, {sa_family=AF_BLUETOOTH, sa_data="\1\0\317,\17\234\320\260\0\0\0\0\0\0"}, 12) = 0
// and right afterwards:
socket(PF_BLUETOOTH, SOCK_STREAM, 3) = 4
connect(4, {sa_family=AF_BLUETOOTH, sa_data="\317,\17\234\320\260\10\0\0\0\0\0\0\0"}, 10) = -1 ECONNREFUSED (Connection refused)