"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: gotd: handle early client disconnections
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Sun, 22 Jan 2023 15:04:48 +0100

Download raw body.

Thread
On Sun, Jan 22, 2023 at 02:48:20PM +0100, Omar Polo wrote:
> Yes, but the uid matters for the limit.  The user running the tests is
> the local user ("op" in my case) that is different from the one
> connecting when cloning via ssh ("gotdev") so the nc "trick" to test
> if gotd closes the sockets doesn't work.

I see.
 
> > It would be nice to have ways to test such things in the test suite.
> 
> maybe we could add a separate test suite that's run as gotdev?

Yes, of course. The Makefile runs as root and can launch individual
test suites as any UID.