New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable TCP connection sharing to improve raven performance #251
Comments
But according to the doco, this is only for when NTLM is used? |
I keep unfortunately coming back to this problem and it seems to occur when the server is just extremely busy. However it now seems to be a daily reoccurring theme that takes me ages to have to start stop and sometimes having to restart the server for things to slowly get back and running. Is this due to a new port being for each request? |
A different way to configure this is; store.JsonRequestFactory.ConfigureRequest += (sender, e) =>
{
var httpWebRequest = ((HttpWebRequest) e.Request);
httpWebRequest.UnsafeAuthenticatedConnectionSharing = true;
httpWebRequest.PreAuthenticate = true;
}; |
Added way to enable it in 6383897 |
With some modification and finishing off of some code johnsimons sent me, here's a work around in the mean time:
|
Nice work @ryanwatson |
And avoid:
From time to time "Raven" gives up throwing System.Net.Sockets.SocketException (0x80004005): An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full 127.0.0.1:8080
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.unsafeauthenticatedconnectionsharing.aspx
To set it:
documentStore.JsonRequestFactory => req => ((HttpWebRequest)req).UnsafeAuthenticatedConnectionSharing = true;
The text was updated successfully, but these errors were encountered: