]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_http_websocket: Debug write lengths. 33/1033/1
authorMark Michelson <mmichelson@digium.com>
Tue, 4 Aug 2015 14:47:34 +0000 (09:47 -0500)
committerMark Michelson <mmichelson@digium.com>
Tue, 4 Aug 2015 14:47:34 +0000 (09:47 -0500)
commit27dc2094e98b59b8a50b059ddd6048285a42e6b9
tree53ce3d5ccb706d5c03798316b947da9d4cf560f0
parent1aa23a5d1ba42a0a7253cbd1793fe8627409637d
res_http_websocket: Debug write lengths.

Commit 39cc28f6ea2140ad6d561fd4c9e9a66f065cecee attempted to fix a
test failure observed on 32 bit test agents by ensuring that a cast from
a 32 bit unsigned integer to a 64 bit unsigned integer was happening in
a predictable place. As it turns out, this did not cause test runs to
succeed.

This commit adds several redundant debug messages that print the payload
lengths of websocket frames. The idea here is that this commit will not
cause tests to succeed for the faulty test agent, but we might deduce
where the fault lies more easily this way by observing at what point the
expected value (537) changes to some ungangly huge number.

If you are wondering why something like this is being committed to the
branch, keep in mind that in commit
39cc28f6ea2140ad6d561fd4c9e9a66f065cecee I noted that the observed test
failures only happen when automated tests are run. Attempts to run the
tests by hand manually on the test agent result in the tests passing.

Change-Id: I14a65c19d8af40dadcdbd52348de3b0016e1ae8d
res/ari/ari_websockets.c
res/res_http_websocket.c