Message147

Author admin
Recipients
Date 2019-01-15.12:30:15
Content
[BitBucket user: Alain Mazy]
[BitBucket date: 2019-01-15.11:30:15]

FYI, tried to reproduce it on Windows with a .Net Core HTTP client.  No error after a few minutes while it crashed after 2-3 secs with a python client.  So it seems that the issue can indeed be in the client

For the record, here's the test code:

```
using System;
using System.Net.Http;
using System.Threading.Tasks;

namespace OrthancIssue32
{
  class Program
  {
    private static readonly HttpClient client = new HttpClient();

    static void Main(string[] args)
    {
      Console.WriteLine(DateTime.Now.ToString());
      Console.WriteLine("Start sending requests!");

      try
      {
        while (true)
        {
          GetStudiesFromOrthanc().Wait();
        }
      }
      catch(Exception ex)
      {
        Console.WriteLine(DateTime.Now.ToString());
        Console.WriteLine(ex.Message);
        Console.WriteLine(ex.StackTrace);
      }
    }

    private static async Task GetStudiesFromOrthanc()
    {
      var stringTask = client.GetStringAsync("http://localhost:8044/studies");
      var msg = await stringTask;
    }
  }
}

```
History
Date User Action Args
2026-07-29 15:51:19adminlinkissue32 messages
2026-07-29 15:51:19admincreate