Istio and Hazelcast

I’m on the latest version of Istio and my Java services are using Hazelcast 3.11.1.

I configured hazelcast communication between services using the option of headless service.

It seems like it properly resolves IP addresses, however I always get an error “Connection reset by peer”.

Java service logs:

2019-07-30 15:43:10.735  WARN 1 --- [.IO.thread-in-2] com.hazelcast.nio.tcp.TcpIpConnection    : [10.252.0.75]:5701 [dev] [3.11.1] Connection[id=12, /10.252.0.75:39675->/10.252.0.103:5701, endpoint=[10.252.0.103]:5701, alive=false, type=NONE] closed. Reason: Exception in Connection[id=12, /10.252.0.75:39675->/10.252.0.103:5701, endpoint=[10.252.0.103]:5701, alive=true, type=NONE], thread=hz._hzInstance_1_dev.IO.thread-in-2
 java.io.IOException: Connection reset by peer

istio-proxy container:
[2019-07-30T15:43:10.731Z] "- - -" 0 UF,URX "-" "-" 0 0 4 - "-" "-" "-" "-" "10.252.0.103:5701" outbound|5701||hazelcast.some-namespace.svc.cluster.local - 10.252.0.103:5701 10.252.0.75:39675 -