https://java.net/jira/browse/JSIP-432 Exhaust the buffers until empty to avoid lagging on slow traffic

git-svn-id: https://svn.java.net/svn/jsip~svn/trunk@2291 8e71dc83-d81e-6649-80f2-80b843a9b2be
(cherry picked from commit 7b82b045d7522b199da669e24fb07ca7432a437f)
Fix for https://java.net/jira/browse/JSIP-418 (duplicate https://java.net/jira/browse/JSIP-452)

git-svn-id: https://svn.java.net/svn/jsip~svn/trunk@2282 8e71dc83-d81e-6649-80f2-80b843a9b2be
(cherry picked from commit 79ebcb1007ef493186a7a7b606219d999d136e3c)
Revert to UDP example to match the context

git-svn-id: https://svn.java.net/svn/jsip~svn/trunk@2283 8e71dc83-d81e-6649-80f2-80b843a9b2be
(cherry picked from commit 819f44e22c7a40a785b7a6c633625a95185d03e4)
https://java.net/jira/browse/JSIP-418

A better fix by setting timer H accurately and eliminating loopholes in the fireTimeout method

git-svn-id: https://svn.java.net/svn/jsip~svn/trunk@2284 8e71dc83-d81e-6649-80f2-80b843a9b2be
(cherry picked from commit e5f5fb1cf20183f04d153ede2be12504ae8b6122)
https://java.net/jira/browse/JSIP-453

Responses through proxy must have their contact fixed. Patch contributed by lrestoux.

git-svn-id: https://svn.java.net/svn/jsip~svn/trunk@2285 8e71dc83-d81e-6649-80f2-80b843a9b2be
(cherry picked from commit 756ed56956d396b59098515352b361f14b54c3a7)
https://java.net/jira/browse/JSIP-432

Reworked websocket codec:
* Recover from initial frame metadata fragmentation
* Recover from buffer overflows
* Robust handling of ending streams
* Testcase

git-svn-id: https://svn.java.net/svn/jsip~svn/trunk@2286 8e71dc83-d81e-6649-80f2-80b843a9b2be
(cherry picked from commit df7a32a38de73298be26df5fd776bb2e2517bb41)
Small fallback logger for testcases

git-svn-id: https://svn.java.net/svn/jsip~svn/trunk@2287 8e71dc83-d81e-6649-80f2-80b843a9b2be
(cherry picked from commit e149dcf4216b0c24db901a58a40d788ee09cf9e7)
https://java.net/jira/browse/JSIP-432

More fixes and tests
* Misinterpreted lengths
* Off-by-one in repeated overflows

git-svn-id: https://svn.java.net/svn/jsip~svn/trunk@2288 8e71dc83-d81e-6649-80f2-80b843a9b2be
(cherry picked from commit bacc3061e8023d33f26d843ca7dd264a714b4182)
https://java.net/jira/browse/JSIP-432

Support for tunneled clumped messages and more efficient unmasking with testcases

git-svn-id: https://svn.java.net/svn/jsip~svn/trunk@2289 8e71dc83-d81e-6649-80f2-80b843a9b2be
(cherry picked from commit cda4b6c5c6565e1f1a0ec95f0f6b288f2d92d142)
https://java.net/jira/browse/JSIP-454

Use IP instead of DNS name for keying the TCP/TLS connections.

git-svn-id: https://svn.java.net/svn/jsip~svn/trunk@2290 8e71dc83-d81e-6649-80f2-80b843a9b2be
(cherry picked from commit 74937affaff9e89e73a4125a947bb797762cbdae)