Post

Replies

Boosts

Views

Activity

Reply to NetworkConnection throws EINVAL when receiving ping/pong control frames
As you suggested, I tested it and was able to confirm the same results. The WebSocket specification states that All control frames MUST have a payload length of 125 bytes or less and MUST NOT be fragmented. https://datatracker.ietf.org/doc/html/rfc6455#section-5.5 Given this requirement, does this mean there is indeed a bug in the current Network framework WebSocket implementation? And could you also check whether this issue occurs with other opcodes besides ping/pong?
Dec ’25
Reply to TLS Session Resumption is not working
I conducted a few experiments. First, I started a local server with OpenSSL as follows: openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3 -nodes -subj "/CN=localhost" openssl s_server -accept 8443 -cert cert.pem -key key.pem -tls1_3 -www -num_tickets 2 -keylogfile keylog.txt -msg -state When I opened https://localhost:8443 in Google Chrome and captured the loopback interface with Wireshark, I saw ClientHello packets containing a pre_shared_key. However, when I ran the same experiment with Safari, there was no ClientHello packet containing a pre_shared_key at all. This led me to suspect that the network stack used by Safari may have stricter requirements for enabling TLS Session Resumption compared to Chrome, and that the same conditions might also apply to URLSession.
Aug ’25
Reply to NetworkConnection throws EINVAL when receiving ping/pong control frames
As you suggested, I tested it and was able to confirm the same results. The WebSocket specification states that All control frames MUST have a payload length of 125 bytes or less and MUST NOT be fragmented. https://datatracker.ietf.org/doc/html/rfc6455#section-5.5 Given this requirement, does this mean there is indeed a bug in the current Network framework WebSocket implementation? And could you also check whether this issue occurs with other opcodes besides ping/pong?
Replies
Boosts
Views
Activity
Dec ’25
Reply to TLS Session Resumption is not working
I conducted a few experiments. First, I started a local server with OpenSSL as follows: openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3 -nodes -subj "/CN=localhost" openssl s_server -accept 8443 -cert cert.pem -key key.pem -tls1_3 -www -num_tickets 2 -keylogfile keylog.txt -msg -state When I opened https://localhost:8443 in Google Chrome and captured the loopback interface with Wireshark, I saw ClientHello packets containing a pre_shared_key. However, when I ran the same experiment with Safari, there was no ClientHello packet containing a pre_shared_key at all. This led me to suspect that the network stack used by Safari may have stricter requirements for enabling TLS Session Resumption compared to Chrome, and that the same conditions might also apply to URLSession.
Replies
Boosts
Views
Activity
Aug ’25