I’m stuck on Replication - 11.
My approach was to open a connection each time a replica has to send data to the master, when I initially connect to the replica everything seems to be working fine, but when I try to make a request to replicate the information i’m getting Connection refused (os error 111)
,
I have tried to use:
0.0.0.0:XXXX
127.0.0.1:XXXX
–localhost:XXXX
it works locally! but I can’t manage to make it work in the tests
Anything seems to work
Here are my logs:
Connection refused (os error 111)
And here’s a snippet of my code:
TcpStream::connect(format!("127.0.0.1:{task_port}")) {
Ok(stream) {
stream.write_all(...)
}
Err(err) {
eprintln!("{}", err);
}
}