lunaryorn/pyudev — Issue #35: Cannot set the receive buffer size
Author: rrerolle
Created: 2011-10-10 13:07:43+00:00
State: open

Hello,

I came across some situations where pyudev would fail receiving an udev event, with the following error:

Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pyudev/glib.py", line 92, in _process_udev_event
event = self.monitor.receive_device()
File "/usr/lib/python2.6/site-packages/pyudev/monitor.py", line 250, in receive_device
raise EnvironmentError(errno, os.strerror(errno))
EnvironmentError: [Errno 105] No buffer space available

There is a udev_monitor_set_receive_buffer_size in libudev, which allows setting the receive buffer size. It would be great if pyudev could export this method through pyudev.Monitor objects.