]> Sergey Matveev's repositories - public-inbox.git/commit
t/httpd-unix.t: avoid race in between bind() and listen()
authorEric Wong <e@80x24.org>
Sun, 30 Jun 2019 22:32:32 +0000 (22:32 +0000)
committerEric Wong <e@80x24.org>
Sun, 30 Jun 2019 22:32:57 +0000 (22:32 +0000)
commit15f98820ca5434f40410a6fceed1e37e50ab68a7
tree251d359041bfcd6cc423957d91d0fbd561401922
parent8472ccddd410a136b5aaa8bb886c7cf0dc302411
t/httpd-unix.t: avoid race in between bind() and listen()

We need to be able to successfully connect() to the socket
before attempting further tests.  Merely testing for the
existence of a socket isn't enough, since the server may've
only done bind(), not listen().
t/httpd-unix.t