I'm currently implementing my own net.Listener (see also #30984 and #31033), https://godoc.org/github.com/mdlayher/vsock#Listener, and would like to ensure it is in full compliance with the net.Listener contract; that is:
I've played around with this a bit locally to try to see what makes sense, and I will send a draft CL with my proposed API and a single test. The basic idea is to mirror what TestConn is doing, and perhaps the two can share a fair bit of internal code.
/cc @dsnet @mikioh @acln0
I'm currently implementing my own
net.Listener(see also #30984 and #31033), https://godoc.org/github.com/mdlayher/vsock#Listener, and would like to ensure it is in full compliance with thenet.Listenercontract; that is:net.Listener, see proposal: net/v2: add SetDeadline to Listener interface #6892) and verify that an expired deadline unblocks Accept as well (this idea is in line with what I propose with x/net/nettest: extend TestConn with optional interface checks #31033)I've played around with this a bit locally to try to see what makes sense, and I will send a draft CL with my proposed API and a single test. The basic idea is to mirror what
TestConnis doing, and perhaps the two can share a fair bit of internal code./cc @dsnet @mikioh @acln0