Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r1920061, r1920070 from trunk:
Replicate r983618 in Win32 code. * network_io/win32/sockets.c: (apr_socket_connect): Copy the remote address by value rather than by reference. This ensures that the sockaddr object returned by apr_socket_addr_get is allocated from the same pool as the socket object itself, as apr_socket_accept does; avoiding any potential lifetime mismatches. * test/testsock.c (test_get_addr): Fix test to portably switch the socket to non-blocking mode using apr_socket_timeout_set(). Also make the test SKIP for the case where the connect() completes synchronously. See: https://lists.apache.org/thread/9m0n8s3zxq0wznnq9nyxswoqdhx7167b Submitted by: ivan, jorton Reviewed by: jorton git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.8.x@1920119 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information