Hi,
Sorry to bug you with this again, but I keep getting this error (in very rapid succession) in teh console when I'm using the UDP version of [netsend]. It doesn't seem to happen with the TCP version, but I can't get the TCP version to work with Python. It seems to really be slowing down the CPU. Is there any way around this issue?

Error during recv: Operation not permitted(1)

Here is the patch:

alt text

And here is the script:

UDP_IP = 'localhost'
UDP_PORT = 3000
BUFFER_SIZE = 1024

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind((UDP_IP, UDP_PORT))
print("waiting... ")
...
while True:
	data, addr = s.recvfrom(1024)
        print "received: ", data

	val = float(data[:-2])
        slp = int(val)
	if val < 0.3:
		lft()
		#time.sleep(.01)
	elif val > -0.3:
		rgt()
		#time.sleep(1)
	else:
		stop() 
		time.sleep(.5)

As an addendum, it seems that if I run the Python script first, then start the Pd patch, it works fine. If I do it the other way around, I get the error.

    What happens for me is that if you start the Pd patch first, it complains about Error during recv: Operation not permitted(1), because there is no open socket at the receiving end. Howevr this stops once I start the python script (the debugging info is a bit misleading: in fact that is an error 111 Connection refused).

    Can you confirm this is the same for you, too?

    czyskows I have a new release of libpd that should remove all that verbose logging and also save some CPU. It does some verbose logging, but only when things do not work.

    Note that now once one UDP message fails to send, the [netsend -u] object switches to disconnected mode (you can monitor this from the right outlet, so if you want to retry to connect you have to do it manually. This is default Pd behaviour.

    Here is the bug, the fix and a fixed binary for you to test, alongside installation instructions: https://github.com/giuliomoro/pure-data/issues/12

    Fantastic! That seems to have done it. Giulio, you are awesome and you're getting a special acknowledgment in my dissertation. I can't thank you enough for the assistance you have provided.