Re: [Qemu-devel] [PATCH] socket: don't attempt to reconnect a TCP socket in server mode

2012-09-12 Thread Anthony Liguori
"Richard W.M. Jones" writes: > On Wed, Sep 05, 2012 at 02:01:36PM -0500, Anthony Liguori wrote: >> Commit c3767ed0eb5d0bb25fe409ae5dec06e3411ff1b6 introduced a possible SEGV >> when >> using a socket chardev with server=on because it assumes that all TCP sockets >> are in client mode. >> >> Thi

Re: [Qemu-devel] [PATCH] socket: don't attempt to reconnect a TCP socket in server mode

2012-09-12 Thread Richard W.M. Jones
On Wed, Sep 05, 2012 at 02:01:36PM -0500, Anthony Liguori wrote: > Commit c3767ed0eb5d0bb25fe409ae5dec06e3411ff1b6 introduced a possible SEGV > when > using a socket chardev with server=on because it assumes that all TCP sockets > are in client mode. > > This patch adds a check to only reconnect

[Qemu-devel] [PATCH] socket: don't attempt to reconnect a TCP socket in server mode

2012-09-05 Thread Anthony Liguori
Commit c3767ed0eb5d0bb25fe409ae5dec06e3411ff1b6 introduced a possible SEGV when using a socket chardev with server=on because it assumes that all TCP sockets are in client mode. This patch adds a check to only reconnect when in client mode. Cc: Lei Li Reported-by: Michael Roth Signed-off-by: An