< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate-users] error turn over tls


Hi Martin,

AsyncTlsSocketBase.cxx:356 | Receive buffer (4096) is not large enough to accomdate incoming framed data (16405) closing connection.

What kind of data are you trying to relay?  reTurn is currently optimized for voice and small video data.  It is compiled with a max data size of near 4096 bytes.  It appears you are sending data of size 16405.

If you are able to build reTurn you could try changing the define for RECEIVE_BUFFER_SIZE in AsyncSocketBase.hxx to a size that will accommodate your data.

I'm a little surprised to hear that it is working UDP, since the same restriction applies, however perhaps it just truncates the data over UDP, instead of erroring out - I can' remember.

Scott

On Fri, Feb 23, 2018 at 5:34 AM, Martin German <martin.german@xxxxxxxxx> wrote:
Hi all,

I am trying to configure the resiprocate-turn-server 1.9.7-5 with tls. 

When I connected over UDP with the TURN it is working fine but when we try to connected to the TURN over TLS I received the following warning "buffer (4096) is not large enough to accomdate incoming framed data (16405) closing connection." and then the TURN cut the connection to the clients. 

the log is:

WARNING | 20180223-101453.700 | reTurnServer | RETURN | 139654726440704 | AsyncTlsSocketBase.cxx:356 | Receive buffer (4096) is not large enough to accomdate incoming framed data (16405) closing connection.
DEBUG | 20180223-101453.700 | reTurnServer | RETURN | 139654726440704 | TlsConnection.cxx:32 | TlsConnection destroyed.
INFO | 20180223-101453.700 | reTurnServer | RETURN | 139654726440704 | TurnAllocation.cxx:55 | TurnAllocation destroyed: clientLocal=[TLS 192.168.10.130:443] clientRemote=[TLS 192.168.10.1:62809] allocation=[UDP 192.168.10.130:50001]
INFO | 20180223-101453.701 | reTurnServer | RETURN | 139654726440704 | TurnAllocationManager.cxx:26 | Turn Allocation Manager destroyed.
DEBUG | 20180223-101453.701 | reTurnServer | RETURN | 139654726440704 | AsyncSocketBase.cxx:153 | handleReceive with error: asio.system:125
INFO | 20180223-101453.701 | reTurnServer | RETURN | 139654726440704 | UdpRelayServer.cxx:36 | ~UdpRelayServer - destroyed.  [192.168.10.130:50001]
WARNING | 20180223-101453.711 | reTurnServer | RETURN | 139654726440704 | TlsConnection.cxx:80 | TlsConnection handshake failure, error=335544539-short read
DEBUG | 20180223-101453.712 | reTurnServer | RETURN | 139654726440704 | TlsConnection.cxx:32 | TlsConnection destroyed.
INFO | 20180223-101453.712 | reTurnServer | RETURN | 139654726440704 | TurnAllocationManager.cxx:26 | Turn Allocation Manager destroyed.
WARNING | 20180223-101453.712 | reTurnServer | RETURN | 139654726440704 | AsyncTlsSocketBase.cxx:364 | Read header error: 335544539-short read
DEBUG | 20180223-101453.712 | reTurnServer | RETURN | 139654726440704 | TlsConnection.cxx:32 | TlsConnection destroyed.
INFO | 20180223-101453.712 | reTurnServer | RETURN | 139654726440704 | TurnAllocationManager.cxx:26 | Turn Allocation Manager destroyed.
WARNING | 20180223-101453.712 | reTurnServer | RETURN | 139654726440704 | AsyncTlsSocketBase.cxx:364 | Read header error: 335544539-short read
DEBUG | 20180223-101453.712 | reTurnServer | RETURN | 139654726440704 | TlsConnection.cxx:32 | TlsConnection destroyed.
INFO | 20180223-101453.712 | reTurnServer | RETURN | 139654726440704 | TurnAllocationManager.cxx:26 | Turn Allocation Manager destroyed.
WARNING | 20180223-101453.712 | reTurnServer | RETURN | 139654726440704 | AsyncTlsSocketBase.cxx:364 | Read header error: 335544539-short read
DEBUG | 20180223-101453.713 | reTurnServer | RETURN | 139654726440704 | TlsConnection.cxx:32 | TlsConnection destroyed.
INFO | 20180223-101453.713 | reTurnServer | RETURN | 139654726440704 | TurnAllocationManager.cxx:26 | Turn Allocation Manager destroyed.
DEBUG | 20180223-101454.458 | reTurnServer | RETURN | 139654726440704 | TurnAllocation.cxx:201 | TurnAllocation sendDataToPeer: clientLocal=[TLS 192.168.10.130:443] clientRemote=[TLS 192.168.10.1:62825] allocation=[UDP 192.168.10.130:50002] peerAddress=[UDP 10.168.9.24:30188]
WARNING | 20180223-101455.118 | reTurnServer | RETURN | 139654726440704 | AsyncTlsSocketBase.cxx:356 | Receive buffer (4096) is not large enough to accomdate incoming framed data (16405) closing connection.
DEBUG | 20180223-101455.118 | reTurnServer | RETURN | 139654726440704 | TlsConnection.cxx:32 | TlsConnection destroyed.
INFO | 20180223-101455.118 | reTurnServer | RETURN | 139654726440704 | TurnAllocation.cxx:55 | TurnAllocation destroyed: clientLocal=[TLS 192.168.10.130:443] clientRemote=[TLS 192.168.10.1:62825] allocation=[UDP 192.168.10.130:50002]
INFO | 20180223-101455.118 | reTurnServer | RETURN | 139654726440704 | TurnAllocationManager.cxx:26 | Turn Allocation Manager destroyed.
DEBUG | 20180223-101455.118 | reTurnServer | RETURN | 139654726440704 | AsyncSocketBase.cxx:153 | handleReceive with error: asio.system:125
INFO | 20180223-101455.118 | reTurnServer | RETURN | 139654726440704 | UdpRelayServer.cxx:36 | ~UdpRelayServer - destroyed.  [192.168.10.130:50002]
WARNING | 20180223-101455.124 | reTurnServer | RETURN | 139654726440704 | AsyncTlsSocketBase.cxx:364 | Read header error: 335544539-short read
DEBUG | 20180223-101455.124 | reTurnServer | RETURN | 139654726440704 | TlsConnection.cxx:32 | TlsConnection destroyed.
INFO | 20180223-101455.124 | reTurnServer | RETURN | 139654726440704 | TurnAllocationManager.cxx:26 | Turn Allocation Manager destroyed.
WARNING | 20180223-101455.124 | reTurnServer | RETURN | 139654726440704 | AsyncTlsSocketBase.cxx:364 | Read header error: 335544539-short read
DEBUG | 20180223-101455.125 | reTurnServer | RETURN | 139654726440704 | TlsConnection.cxx:32 | TlsConnection destroyed.
INFO | 20180223-101455.125 | reTurnServer | RETURN | 139654726440704 | TurnAllocationManager.cxx:26 | Turn Allocation Manager destroyed.
WARNING | 20180223-101455.125 | reTurnServer | RETURN | 139654726440704 | AsyncTlsSocketBase.cxx:364 | Read header error: 335544539-short read
DEBUG | 20180223-101455.125 | reTurnServer | RETURN | 139654726440704 | TlsConnection.cxx:32 | TlsConnection destroyed.
INFO | 20180223-101455.125 | reTurnServer | RETURN | 139654726440704 | TurnAllocationManager.cxx:26 | Turn Allocation Manager destroyed.


BR,
  Martín.

_______________________________________________
resiprocate-users mailing list
resiprocate-users@resiprocate.org
List Archive: http://list.resiprocate.org/archive/resiprocate-users/