liburing icon indicating copy to clipboard operation
liburing copied to clipboard

Set socket send timeout with SO_SNDTIMEO but the request never complete

Open jessehui opened this issue 3 years ago • 1 comments

In my code, I set SO_SNDTIMEO with setsockopt for a blocking socket and submit a send request with iouring. But it turns out that the send request never returns when the kernel buffer is full. I expect that if the send blocks, the timeout will guarantee the request complete with error number but it doesn't look like this. It seems that the SO_SNDTIMEO doesn't take effect for iouring submitted request. Is this a known limitation or if I am using it wrongly?

jessehui avatar Jun 19 '22 05:06 jessehui

@axboe @isilence Any comments?

jessehui avatar Jul 04 '22 02:07 jessehui