Update Socket#accept
to use rb_io_blocking_region
.
This commit is contained in:
parent
3031bf6bd4
commit
04ddb7e808
Notes:
git
2024-10-09 10:49:11 +00:00
@ -719,7 +719,7 @@ rsock_s_accept(VALUE klass, VALUE io, struct sockaddr *sockaddr, socklen_t *len)
|
||||
#ifdef RSOCK_WAIT_BEFORE_BLOCKING
|
||||
rb_io_wait(fptr->self, RB_INT2NUM(RUBY_IO_READABLE), Qnil);
|
||||
#endif
|
||||
peer = (int)BLOCKING_REGION_FD(accept_blocking, &accept_arg);
|
||||
peer = (int)rb_io_blocking_region(fptr, accept_blocking, &accept_arg);
|
||||
if (peer < 0) {
|
||||
int error = errno;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user