title: MongoDb docker hangs after some requests
body: <p>I have MongoDB running in Docker for Windows on my local machine. The configuration from my compose file is:</p>
  
  <pre><code>mongo:
    image: mongo:latest
    ports:
      - "27017:27017"
  </code></pre>
  
  <p>At the moment i am building an import process with ASP.NET Core where I have to import about 1.1 Mio documents. I realized that the import process just stops after about 400k items. When I break the process I a task from the network layer (NetworkStream.WriteAsync) but no busy or waiting thread at all. MongoDB is still alive, I can connect with MongoChef and also run queries.</p>
  
  <p>I import the document in batches of 5.000 items:</p>
  
  <pre><code>var requests = 
      this.transformedHotels.Select(x =&gt; 
          new ReplaceOneModel&lt;MongoTransformedHotel&gt;(Builders&lt;MongoTransformedHotel&gt;.Filter.Eq(y =&gt; y.Id, x.Id), x)
          {
              IsUpsert =  true
          });
  
  return this.collection.BulkWriteAsync(requests);
  </code></pre>
  
  <p>When I run MongoDB without docker it works. What can cause my network connection to hang?</p>