Hi Christoph, and others :)
I tried the unstable source and it seems to do the trick, however when
trying to send files that are larger than 16-17 MB it fails with an
IOException and a message that the connection was forcible closed by
the remote host.
This is the stacktrace
ved System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32
offset, Int32 size)
ved Norm.Connection.Write(Byte[] bytes, Int32 start, Int32 size)
ved Norm.Protocol.Messages.QueryMessage`2.Execute()
ved Norm.MongoQueryExecutor`3.<GetEnumerator>d__0.MoveNext()
ved System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1
source)
ved Norm.Collections.MongoCollection`1.FindOne[U](U template)
ved Norm.MongoDatabase.LastError()
ved Norm.Collections.MongoCollection`1.Insert(IEnumerable`1
documentsToInsert)
ved Norm.GridFS.GridFileCollection.Save(GridFile file)
ved EC2.MongoDB.Benchmarks.Program.Main(String[] args) i P:
\Projekter\Privat\EC2.MongoDB.Benchmarks\EC2.MongoDB.Benchmarks
\Program.cs:linje 43
ved System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
ved System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
ved
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
ved System.Threading.ThreadHelper.ThreadStart_Context(Object state)
ved System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
ved System.Threading.ThreadHelper.ThreadStart()
It might point out that the MongoDB service is hosted on an Amazon EC2
micro instance in eastern USA and I'm located in Denmark, so there is
a huge blob of water between my program an the server, but other than
~100 ms pings to the server it performs very well handling 20000+
inserts a second using batch inserts.
Any idea why I get this error? the mongodb-csharp driver does not seem
to have this problem. I'm not seeing anything in the mongodb logs
other than connection opened and closed messages. no errors.
--
Christian