Skip to content

Commit

Permalink
Merge pull request #316 from OmniSharp/dth/timeout
Browse files Browse the repository at this point in the history
Increase timeout for DTH to start
  • Loading branch information
david-driscoll committed Oct 10, 2015
2 parents 9204b2e + 88063f7 commit af953b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OmniSharp/Dnx/DesignTimeHostManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void Start(string hostId, Action<int> onConnected)
string version;

if (DnxSdk.TryParseFullName(fullName, out flavor, out os, out arch, out version) &&
string.Equals(flavor, "coreclr", StringComparison.OrdinalIgnoreCase) &&
string.Equals(flavor, "coreclr", StringComparison.OrdinalIgnoreCase) &&
!string.Equals(os, "win", StringComparison.OrdinalIgnoreCase))
{
// Work around since DTH is broken on CoreCLR on *nix and OSX
Expand Down Expand Up @@ -95,7 +95,7 @@ public void Start(string hostId, Action<int> onConnected)
using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
{
var t1 = DateTime.UtcNow;
var dthTimeout = TimeSpan.FromSeconds(10);
var dthTimeout = TimeSpan.FromSeconds(30);
while (!socket.Connected && DateTime.UtcNow - t1 < dthTimeout)
{
Thread.Sleep(500);
Expand Down

0 comments on commit af953b4

Please sign in to comment.