public inbox for [email protected]
 help / color / mirror / Atom feed
* SQPOLL fd close(2) question
@ 2020-09-25 16:21 Josef
  2020-09-25 17:56 ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Josef @ 2020-09-25 16:21 UTC (permalink / raw)
  To: io-uring, Jens Axboe; +Cc: norman

Hi,

I implemented SQPOLL in netty for 5.8/5.9, to close a fd I need to
delete the entry first, it seems to fail with error -EADDRINUSE when I
remove the fd entry, close(2) it and the same socket(with the same
address) is created again,, is that known?
I assume that io_uring still has some reference to this, however
io_uring_unregister_files works fine but the drawback would be that I
need to wait until the ring is idle

example:
https://gist.github.com/1Jo1/53d01c4c2172bb0762b5dbcf9ef9c623

---
Josef

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-26 10:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-25 16:21 SQPOLL fd close(2) question Josef
2020-09-25 17:56 ` Jens Axboe
2020-09-25 23:40   ` Josef
2020-09-26 10:53     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox