- 25 Apr, 2014 22 commits
-
-
Olivier Crête authored
But keep the turn connection that's currently being used if it is the selected candidate. Also clear the TURN candidate refresh.
-
Olivier Crête authored
Instead of just blindling assuming that all of the pointers are valid until the end.
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
Change the SocketSource handling to make it possible to remove a source, not only to add one.
-
-
Olivier Crête authored
It can now take it from the agent.
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
Skips one iterator over g_slist_foreach() + g_slist_free(). It is also easier to read.
-
Olivier Crête authored
It is never used outside of this file.
-
Olivier Crête authored
-
Olivier Crête authored
-
Olivier Crête authored
-
- 24 Apr, 2014 5 commits
-
-
Olivier Crête authored
-
Olivier Crête authored
-
-
-
If doing a recv on UDP-TURN, the 'from' address was kept set to the turn server which causes connchecks to fail with "mismatched address" error. This fixes it
-
- 23 Apr, 2014 1 commit
-
-
Guillaume Desmottes authored
Nice to make debug logs more friendly to read.
-
- 17 Apr, 2014 3 commits
-
-
If an incoming ACK acknowledges part of a pending SSegment, correctly increment the base offset of that SSegment before attempting to transmit it. Otherwise, the wrong data will be transmitted and the offset passed to packet() will be incorrect.
-
If a packet has an invalid tsecr field, invalid (e.g. negative) RTTs may be calculated from it. If so, discard the packet as invalid.
-
As documented at the top of the file, this creates two PseudoTcpSockets in a loopback configuration, and mutates the raw packets which are sent between them, hoping to cause assertion failures and illegal memory accesses in the pseudotcp code. Best run under Valgrind or GDB.
-
- 16 Apr, 2014 2 commits
-
-
Philip Withnall authored
If the error handling block in the middle of the recv() loop is hit, various things were previously leaked (context, cancellable_source) and the return values were potentially incorrect. Fix the break out of the error handling block to clean up correctly.
-
Olivier Crête authored
-
- 15 Apr, 2014 3 commits
-
-
Philip Withnall authored
-
Philip Withnall authored
At this point in the code, neither the username nor password are nul-terminated, so printing them in the debug output as nul-terminated strings can easily result in rubbish being printed after them. Fix this by specifying the string length in the printf() format string. Finally my terminal will no longer ask me to install N’Ko fonts when running the libnice tests.
-
Philip Withnall authored
If @cancellable is NULL in a call to nice_output_stream_write(), the WriteData struct is created with a reference count of 4, but only two operations are scheduled which will result in its reference count being decremented. The third operation is only scheduled if @cancellable is non-NULL (and the final reference is dropped unconditionally at the end of the function). Fix this by properly implementing reference counting for WriteData, rather than hard-coding the expected number of references in a fragile and unmaintainable way.
-
- 09 Apr, 2014 4 commits
-
-
Olivier Crête authored
-
Olivier Crête authored
-
-
Olivier Crête authored
The GOutputStream based systems can sometimes call this, decide the stream is not writable and then poll for it. We have to make sure that poll is woken up.
-