conmux: Bump max response length

When a conmux is already attached the motd becomes quite long,
surpassing the 128 bytes, bump the max response length.

This solves the problem sometimes seen as:

  bad: parsing reqistry lookup response: truncated percent-encoding

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
Bjorn Andersson
2018-11-30 10:58:40 -08:00
parent c264b11e94
commit 8306649692

View File

@@ -143,7 +143,7 @@ static int registry_lookup(const char *service, struct conmux_lookup *result)
{
struct conmux_response resp = {};
struct sockaddr_in saddr;
char buf[128];
char buf[256];
ssize_t n;
char *p;
int ret;
@@ -232,7 +232,7 @@ void *conmux_open(struct device *dev)
struct hostent *hent;
const char *service = dev->cdb_serial;
ssize_t n;
char req[128];
char req[256];
int ret;
int fd;