Connection dropped after some times

141 views
Skip to first unread message

Michael Tnourji

unread,
Sep 27, 2016, 2:14:39 AM9/27/16
to TURN Server (Open-Source project)
Dear all, 
I installed coturn and use it in my webrtc app, where one "operator" is connected with multiple clients.
It works fine untill one moment where the operator is disconnected. I can't see any related number of connection or timing provoking this disconnection.

What I see in the logs is :

closed (2nd stage), user <> realm <xxxx> origin <>, loca 111.11.11.111:5349, remote 222.22.22.222:62453, reason: TLS/TCP socket buffer operation error (callback)

Any hint ?

Best regards,

Oleg Moskalenko

unread,
Sep 27, 2016, 2:21:49 AM9/27/16
to Michael Tnourji, TURN Server (Open-Source project)
two possible reasons:

1) The client TLS connection is bad.
2) There is a mismatch between the compile-time OpenSSL, Libevent2
libraries compiled with OpenSSL, and the runtime OpenSSL. All three
OpenSSL versions must be exactly the same. Again those are:

1) The OpenSSL version that was used when Libevent2 was compiled;
2) The OpenSSL version that was used when Coturn was compiled;
3) The runtime OpenSSL version.

I've seen all sorts of strange things when those versions were not
exactly the same.

Oleg

>
> Any hint ?
>
> Best regards,
>
> --
> You received this message because you are subscribed to the Google Groups
> "TURN Server (Open-Source project)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> turn-server-project-rfc57...@googlegroups.com.
> To post to this group, send email to
> turn-server-project...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/turn-server-project-rfc5766-turn-server.
> For more options, visit https://groups.google.com/d/optout.

Michael Tnourji

unread,
Sep 27, 2016, 2:37:04 AM9/27/16
to TURN Server (Open-Source project), michael...@gmail.com
Hello Oleg,

Thanks for your reply !

How do I know which version was used at compile time ? I downloaded turnserver-4.5.0.3-CentOS6.6-x86_64.tar.gz .
I run it on a server which as OpenSSL version  1.0.1e-fips 11 Feb 2013

> To post to this group, send email to

Oleg Moskalenko

unread,
Sep 27, 2016, 2:39:01 AM9/27/16
to Michael Tnourji, TURN Server (Open-Source project)
is that CentOS 6.6 ?

You can recompile it from sources yourself to be sure.

Oleg

On Mon, Sep 26, 2016 at 11:37 PM, Michael Tnourji
>> > turn-server-project-rfc57...@googlegroups.com.
>> > To post to this group, send email to
>> > turn-server-project...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups
> "TURN Server (Open-Source project)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> turn-server-project-rfc57...@googlegroups.com.
> To post to this group, send email to
> turn-server-project...@googlegroups.com.

Michael Tnourji

unread,
Sep 27, 2016, 2:41:11 AM9/27/16
to TURN Server (Open-Source project), michael...@gmail.com
This is centos-release-6-8.el6.centos.12.3.x86_64
Ok Thank you, I'll give it a try
>> > To post to this group, send email to
>> > Visit this group at
>> > https://groups.google.com/group/turn-server-project-rfc5766-turn-server.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TURN Server (Open-Source project)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> To post to this group, send email to

Oleg Moskalenko

unread,
Sep 27, 2016, 2:46:28 AM9/27/16
to Michael Tnourji, TURN Server (Open-Source project)
you can try the later versions, also

On Mon, Sep 26, 2016 at 11:41 PM, Michael Tnourji
>> >> > turn-server-project-rfc57...@googlegroups.com.
>> >> > To post to this group, send email to
>> >> > turn-server-project...@googlegroups.com.
>> >> > Visit this group at
>> >> >
>> >> > https://groups.google.com/group/turn-server-project-rfc5766-turn-server.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "TURN Server (Open-Source project)" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to
>> > turn-server-project-rfc57...@googlegroups.com.
>> > To post to this group, send email to
>> > turn-server-project...@googlegroups.com.
>> > Visit this group at
>> > https://groups.google.com/group/turn-server-project-rfc5766-turn-server.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TURN Server (Open-Source project)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> turn-server-project-rfc57...@googlegroups.com.
> To post to this group, send email to
> turn-server-project...@googlegroups.com.

Michael Tnourji

unread,
Sep 27, 2016, 4:57:05 AM9/27/16
to TURN Server (Open-Source project), michael...@gmail.com
I updated to the latest version forseen for centos 6.8... So far so good.. I'll keep you posted.
Thanks for your great follow up
>> >> > To post to this group, send email to
>> >> > Visit this group at
>> >> >
>> >> > https://groups.google.com/group/turn-server-project-rfc5766-turn-server.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "TURN Server (Open-Source project)" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to
>> > To post to this group, send email to
>> > Visit this group at
>> > https://groups.google.com/group/turn-server-project-rfc5766-turn-server.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TURN Server (Open-Source project)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> To post to this group, send email to

Michael Tnourji

unread,
Oct 11, 2016, 8:05:04 AM10/11/16
to TURN Server (Open-Source project), michael...@gmail.com
Unfortunately, I still encounter the same issue.  I often see this :  1223933: session 000000000000001253: closed (2nd stage), user <> realm <eurekali.com> origin <>, local 111.222.99.111:3478, remote 12.444.11.222:57227, reason: allocation watchdog determined stale session state. But it's hard to see what's wrong as the logs are not showing a clear event time

Oleg Moskalenko

unread,
Oct 11, 2016, 2:20:49 PM10/11/16
to Michael Tnourji, TURN Server (Open-Source project)
That looks like a bad slow client connection. Probably too many IP
packets are getting lost.

Oleg
>>> >> >> > turn-server-project-rfc57...@googlegroups.com.
>>> >> >> > To post to this group, send email to
>>> >> >> > turn-server-project...@googlegroups.com.
>>> >> >> > Visit this group at
>>> >> >> >
>>> >> >> >
>>> >> >> > https://groups.google.com/group/turn-server-project-rfc5766-turn-server.
>>> >> >> > For more options, visit https://groups.google.com/d/optout.
>>> >> >
>>> >> > --
>>> >> > You received this message because you are subscribed to the Google
>>> >> > Groups
>>> >> > "TURN Server (Open-Source project)" group.
>>> >> > To unsubscribe from this group and stop receiving emails from it,
>>> >> > send
>>> >> > an
>>> >> > email to
>>> >> >
>>> >> > turn-server-project-rfc57...@googlegroups.com.
>>> >> > To post to this group, send email to
>>> >> > turn-server-project...@googlegroups.com.
>>> >> > Visit this group at
>>> >> >
>>> >> > https://groups.google.com/group/turn-server-project-rfc5766-turn-server.
>>> >> > For more options, visit https://groups.google.com/d/optout.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "TURN Server (Open-Source project)" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> > an
>>> > email to
>>> > turn-server-project-rfc57...@googlegroups.com.
>>> > To post to this group, send email to
>>> > turn-server-project...@googlegroups.com.
>>> > Visit this group at
>>> >
>>> > https://groups.google.com/group/turn-server-project-rfc5766-turn-server.
>>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TURN Server (Open-Source project)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> turn-server-project-rfc57...@googlegroups.com.
> To post to this group, send email to
> turn-server-project...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages