[ovs-dev] [PATCH] stream-windows: Disconnect faulty named pipes

Guru Shetty guru at ovn.org
Tue Aug 23 20:27:45 UTC 2016


On 12 August 2016 at 00:46, Alin Serdean <aserdean at cloudbasesolutions.com>
wrote:

> Disconnect named pipes that failed connection.
>
> Found by testing.
>
> Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
>

Thanks, applied to master and 2.6


> ---
>  lib/stream-windows.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/lib/stream-windows.c b/lib/stream-windows.c
> index e0fe012..637920b 100644
> --- a/lib/stream-windows.c
> +++ b/lib/stream-windows.c
> @@ -431,6 +431,7 @@ pwindows_accept(struct pstream *pstream, struct stream
> **new_streamp)
>              } else {
>                  VLOG_ERR_RL(&rl, "Could not connect named pipe. Last "
>                              "error: %s", ovs_lasterror_to_string());
> +                DisconnectNamedPipe(p->fd);
>                  return EINVAL;
>              }
>          }
> @@ -446,6 +447,7 @@ pwindows_accept(struct pstream *pstream, struct stream
> **new_streamp)
>          } else if (last_error != ERROR_PIPE_CONNECTED) {
>              VLOG_ERR_RL(&rl, "Could not connect synchronous named pipe.
> Last "
>                          "error: %s", ovs_lasterror_to_string());
> +            DisconnectNamedPipe(p->fd);
>              return EINVAL;
>          } else {
>              /* If the pipe is connected, signal an event. */
> --
> 2.9.2.windows.1
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>



More information about the dev mailing list