-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault in sctp_data_received_cb #20
Comments
Hi @JulienDuf , could you show me the rtcdc_on_channel_cb function? |
For the moment I'm doing this : void PeerConnection_OnChannel(PeerConnection *peer, DataChannel *channel, void *user_data)
{
printf("OnChannel" "\n");
} But the callback is never called. |
Let me see...what if you add -DDEBUG_SCTP when you compile this code, can you see something like "data of length %zu received on stream %u with SSN %u, TSN %u, PPID %u\n"? |
No, because the seg fault is there : struct rtcdc_transport *transport = peer->transport; When the program is in this function, every parameters are invalid (they have junk in them). This might be a problem of multithreading, two threads working with the sctp transport at the same time. |
The name |
I'm trying to use librtcdc for peer to peer connection and for data transfer. The peer to peer connection works perfectly. But when one peer creates a data channel, the other peer always ends with a Segmentation fault in the
sctp_data_received_cb
function of stcp.cI create my data channel in the on_connect callback :
Am I the only one with that problem ?
The text was updated successfully, but these errors were encountered: