mongodb / mongo-rust-driver

The official MongoDB Rust Driver
https://www.mongodb.com/docs/drivers/rust/current/
Apache License 2.0
1.44k stars 163 forks source link

socket_timeout support #1231

Open fishincat opened 2 days ago

fishincat commented 2 days ago

Versions/Environment

  1. What version of Rust are you using?
  2. What operating system are you using?
  3. What versions of the driver and its dependencies are you using? (Run cargo pkgid mongodb & cargo pkgid bson)
  4. What version of MongoDB are you using? (Check with the MongoDB shell using db.version())
  5. What is your MongoDB topology (standalone, replica set, sharded cluster, serverless)?

Describe the bug

Is there a plan to support the socket_timeout option? Our service has encountered a connection stuck issue. It's nice if this socket_timeout options is enabled and will solve our problem.

isabelatkinson commented 1 day ago

Hi @fishincat, RUST-564 tracks adding support for this option. It is not currently planned, but I will discuss prioritizing this with the team. Feel free to follow that ticket for more updates.