Skip to content

Commit

Permalink
Update HttpRequest and ProxyClient default ConnectTimeout = 9 secs an…
Browse files Browse the repository at this point in the history
…d ReadWriteTimeout = 24 secs. Update version.
  • Loading branch information
grandsilence committed Jan 31, 2018
1 parent d8118d1 commit b5686a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// Можно задать все значения или принять номер построения и номер редакции по умолчанию,
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.1.0.0")]
[assembly: AssemblyFileVersion("4.1.0.0")]
[assembly: AssemblyVersion("4.2.0.0")]
[assembly: AssemblyFileVersion("4.2.0.0")]
[assembly: NeutralResourcesLanguage("en")]
4 changes: 2 additions & 2 deletions ~Http/HttpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ public override void Write(byte[] buffer, int offset, int count)
private int _redirectionCount = 0;
private int _maximumAutomaticRedirections = 5;

private int _connectTimeout = 60 * 1000;
private int _readWriteTimeout = 60 * 1000;
private int _connectTimeout = 9 * 1000; // 9 Seconds
private int _readWriteTimeout = 24 * 1000; // 24 Seconds

private DateTime _whenConnectionIdle;
private int _keepAliveTimeout = 30 * 1000;
Expand Down
4 changes: 2 additions & 2 deletions ~Proxy/ProxyClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public abstract class ProxyClient : IEquatable<ProxyClient>
protected string _password;

/// <summary>Время ожидания в миллисекундах при подключении к прокси-серверу.</summary>
protected int _connectTimeout = 60000;
protected int _connectTimeout = 9 * 1000; // 9 Seconds
/// <summary>Время ожидания в миллисекундах при записи в поток или при чтении из него.</summary>
protected int _readWriteTimeout = 60000;
protected int _readWriteTimeout = 24 * 1000; // 20 Seconds

#endregion

Expand Down

0 comments on commit b5686a5

Please sign in to comment.