aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorImran Iqbal <imran@imraniqbal.org>2016-05-04 17:26:33 -0400
committerSaúl Ibarra Corretgé <saghul@gmail.com>2016-05-05 23:23:28 +0200
commit337e9fd0f5ea7b17bad39a94cf2452aac59b410a (patch)
tree5f062e058d2e3eabf64e858d9e1adeb3e4fa973b /docs/src
parentd43ee0eafa3605d8e4edc1c405a7a08baf00993d (diff)
downloadlibuv-337e9fd0f5ea7b17bad39a94cf2452aac59b410a.tar.gz
libuv-337e9fd0f5ea7b17bad39a94cf2452aac59b410a.zip
test: fix POLLHDRUP related failures for AIX
`POLLHDRUP` is not implemented on AIX. Therefore `UV_DISCONNECT` will never be set on `events`. This causes the socket to never be closed and the tests to be stuck inside `pollset_poll` indefinitely, resulting in a timeout. This fixes the following tests: - poll_duplex - poll_unidirectional Updated docs to let end users know that `UV_DISCONNECT` can be set, but is unsupported on AIX. Fixes: https://github.com/libuv/libuv/issues/844 PR-URL: https://github.com/libuv/libuv/pull/857 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/poll.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/src/poll.rst b/docs/src/poll.rst
index 69d45be6..004ff4b9 100644
--- a/docs/src/poll.rst
+++ b/docs/src/poll.rst
@@ -31,6 +31,8 @@ closed immediately after a call to :c:func:`uv_poll_stop` or :c:func:`uv_close`.
On windows only sockets can be polled with poll handles. On Unix any file
descriptor that would be accepted by :man:`poll(2)` can be used.
+.. note::
+ On AIX, watching for disconnection is not supported.
Data types
----------
@@ -101,6 +103,10 @@ API
Calling :c:func:`uv_poll_start` on a handle that is already active is fine. Doing so
will update the events mask that is being watched for.
+ .. note::
+ Though UV_DISCONNECT can be set, it is unsupported on AIX and as such will not be set
+ on the `events` field in the callback.
+
.. versionchanged:: 1.9.0 Added the UV_DISCONNECT event.
.. c:function:: int uv_poll_stop(uv_poll_t* poll)