he block only http 8080 activity and only on
public string DirectPutIndex(string name, string operationUrl, bool overwrite, IndexDefinition definition)
{
string requestUri = operationUrl + "/indexes/" + name;
var checkIndexExists = jsonRequestFactory.CreateHttpJsonRequest(
new CreateHttpJsonRequestParams(this, requestUri, "HEAD", credentials, convention)
.AddOperationHeaders(OperationsHeaders))
.AddReplicationStatusHeaders(Url, operationUrl, replicationInformer, convention.FailoverBehavior, HandleReplicationStatusChanges);
try
{
// If the index doesn't exist this will throw a NotFound exception and continue with a PUT request
checkIndexExists.ExecuteRequest(); <-------- this
if (!overwrite)
throw new InvalidOperationException("Cannot put index: " + name + ", index already exists");
}
catch (WebException e)
{
var httpWebResponse = e.Response as HttpWebResponse;
if (httpWebResponse == null || httpWebResponse.StatusCode != HttpStatusCode.NotFound)
throw;
}
вторник, 4 июня 2013 г., 16:35:28 UTC+4 пользователь Chris Marisic написал: