Sure, I will open a TSI next week. Meanwhile, continuing my investigation, I looked into console logs and I can see SSL3_RT_ALERT, description: close notify. Which means Mac client is receiving TLS close but is not closing the connection.
The screenshot for console log is available here: https://ibb.co/bXYrPT4
The server side calls SSL_shutdown which only closes the write direction from server side while keeping read side open.
SSL_shutdown() only closes the write direction. It is not possible to call SSL_write() after calling SSL_shutdown(). The read direction is closed by the peer.
So, as per the OpenSSL docs, server is doing right thing but NWConnection is not responding back with notify close, to finish the connection from both sides.
Topic:
App & System Services
SubTopic:
Core OS
Tags: