deepstreamNet icon indicating copy to clipboard operation
deepstreamNet copied to clipboard

Problem running .net core 2.1 on linux

Open xalikoutis opened this issue 6 years ago • 3 comments

Hi,

Just updated on .net core 2.1 and works just great from my dev windows machine when connecting to deepstream 3.10 but when i deploy it to linux (docker) it works randomly. Most of the times stucks in client.LoginAsync() forever really forever an hour and so.

var client = new DeepStreamClient(host, Convert.ToInt16(port), "deepstream",Convert.ToBoolean(secure));
        
            if (await client.LoginAsync(user, pass))
            {              
                var notifications = await _mediator.Send(new NotificationsQuery.GetNotifications(){UserId = userid});               
                IDeepStreamRecord record = await client.Records.GetRecordAsync($"user/{userid}");               
                await client.Records.SetWithAckAsync(record, notifications);               
            }
            client.Dispose();

Till now was on .net core 2.0 and was working great in production.

xalikoutis avatar Jun 06 '18 16:06 xalikoutis

Not sure if related, on Linux netcore 2.1

IDeepStreamRecord record_activity = await client.Records.GetRecordAsync(id);

randomly ( most of the time ) raises a ACK_TIMEOUT.

Running dockerized deepstream 3.1.4 on centos:7

andreabat avatar Aug 23 '18 16:08 andreabat

I have no linux box available at the moment. @xalikoutis Have you tested if your deepstream endpoint is accesible via another client? e.g. the javascript implementation?

schulz3000 avatar Nov 06 '18 18:11 schulz3000

Yes it works in my Angular 7 app

xalikoutis avatar Nov 07 '18 12:11 xalikoutis