papi: harden socket handling 52/24852/2
authorVratko Polak <[email protected]>
Fri, 11 Oct 2019 14:53:08 +0000 (16:53 +0200)
committerDave Barach <[email protected]>
Tue, 18 Feb 2020 13:29:06 +0000 (13:29 +0000)
commit7e8a3ece6f050240ce8836c37a718720d27da97e
treeff3060d318a6d6c791deaacfabc03c5cb46d6a1b
parent1c45b85dff2a0e8c60541cfa5371090fb9502e18
papi: harden socket handling

In the previous implementation of socket transport for PAPI,
socket methods .send and .recv_into were used.
But they are not guaranteed to send/receive all the data
for the full message. The receive part contained a loop,
but it handled only the main message, not the header.

This patch replaces .send with .sendall
and uses newly defined _read_fixed method.

Also, removed Paul from maintainers,
as he is not active much, lately.

Type: fix

Change-Id: Iae1a68bf8f9e666856b7c7d62ebfe22defc5dfe1
Signed-off-by: Vratko Polak <[email protected]>
(cherry picked from commit 6df2c7954126a316f86908526c3bb4d649f06597)
MAINTAINERS
src/vpp-api/python/vpp_papi/vpp_transport_socket.py