[#32468] Fix to JHttpTransportSocket (3616 rebase)

Rebase for #3616