Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 166854 Details for
Bug 239173
dev-lang/erlang-12.2.4: gen_tcp:connect gives "false positives"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch for the inet driver
erlang-12.2.4-inet_drv.patch (text/plain), 1.22 KB, created by
Oscar Hellström
on 2008-09-30 18:02:03 UTC
(
hide
)
Description:
Patch for the inet driver
Filename:
MIME Type:
Creator:
Oscar Hellström
Created:
2008-09-30 18:02:03 UTC
Size:
1.22 KB
patch
obsolete
>--- otp_src_R12B-4.orig/erts/emulator/drivers/common/inet_drv.c 2008-09-01 05:51:18.000000000 -0700 >+++ otp_src_R12B-4/erts/emulator/drivers/common/inet_drv.c 2008-09-30 10:38:06.000000000 -0700 >@@ -7239,19 +7239,18 @@ > buf, &len) == NULL) > return ctl_error(EINVAL, rbuf, rsize); > >- sock_select(INETP(desc), FD_CONNECT, 1); > code = sock_connect(desc->inet.s, > (struct sockaddr*) &desc->inet.remote, len); > if ((code == SOCKET_ERROR) && > ((sock_errno() == ERRNO_BLOCK) || /* Winsock2 */ > (sock_errno() == EINPROGRESS))) { /* Unix & OSE!! */ > desc->inet.state = TCP_STATE_CONNECTING; >+ sock_select(INETP(desc), FD_CONNECT, 1); > if (timeout != INET_INFINITY) > driver_set_timer(desc->inet.port, timeout); > enq_async(INETP(desc), tbuf, INET_REQ_CONNECT); > } > else if (code == 0) { /* ok we are connected */ >- sock_select(INETP(desc), FD_CONNECT, 0); > desc->inet.state = TCP_STATE_CONNECTED; > if (desc->inet.active) > sock_select(INETP(desc), (FD_READ|FD_CLOSE), 1); >@@ -7259,7 +7258,6 @@ > async_ok(INETP(desc)); > } > else { >- sock_select(INETP(desc), FD_CONNECT, 0); > return ctl_error(sock_errno(), rbuf, rsize); > } > return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 239173
: 166854 |
166855