Unable to connect to the remote server System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted.
http://msdn.microsoft.com/en-us/library/aa560610(v=bts.20).aspx
Here is what I found, open a new session will need to open a new TCP/IP socket connection which is a limited resource.
The test application can process 10K documents in 3-5 minutes, assume one by one process/per session and it turned out trying to open too many connection in a short time which causes the error.
Question:
As the recommended way, it shall keep the session as short as possible but open/close too many session in a short time cause issue above.
Any suggestion? Other than lower TIME_WAIT value.
Thanks
James
It is ok, in your scenario like in mine, IIS is going to RavenDB always with the same user, in this case is fine to share connections.
If you do not want to pay the overhead of credentials refresh, every 15 minutes IIRC, you can move to ApiKey.
.m
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/DUYFvqWR5Hc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+u...@googlegroups.com.