[ovs-dev] [PATCH] python: Workaround UNIX socket path length limits

Ben Pfaff blp at nicira.com
Wed Jan 16 17:30:04 UTC 2013


On Wed, Jan 16, 2013 at 11:12:09AM +0000, James Page wrote:
> From aa28e8bfb646a54ba91e3545f3c0b9db39eddb7f Mon Sep 17 00:00:00 2001
> From: James Page <james.page at ubuntu.com>
> Date: Wed, 16 Jan 2013 10:52:59 +0000
> Subject: [PATCH] python: Workaround UNIX socket path length limits
> To: dev at openvswitch.org
> 
> UNIX socket paths have a limit in terms of length.  On Linux
> this is 103 characters.
> 
> This is a problem in Debian/Ubuntu buildds which can generate
> quite long paths.
> 
> This patch works around this issue by detecting when socket
> connection/binding fails due to this issue and accessing the
> socket path using a file descriptor path in /proc/self/fd.
> 
> The workaround is limited to Linux.
> 
> This is based on similar code in the C parts of OpenvSwitch.
> 
> Signed-off-by: James Page <james.page at ubuntu.com>

Applied.

This patch didn't add a test like the one for the existing C code, so I
sent out an implementation, starting here:
        http://openvswitch.org/pipermail/dev/2013-January/024535.html



More information about the dev mailing list