Compare commits
810 Commits
v7.5.4
...
feature/se
Author | SHA1 | Date | |
---|---|---|---|
bdee582203 | |||
4ef04b8339 | |||
e581f29b42 | |||
a42f115f79 | |||
5ce1a596cf | |||
21db7b6c5b | |||
e15a2900e7 | |||
140a21c8b3 | |||
6d0c568aaa | |||
c96abcef1c | |||
4a9b0b9dfd | |||
8837d5e784 | |||
242c945400 | |||
feab4dee0f | |||
8175829b4b | |||
4c66a7561e | |||
111475e65c | |||
45061b0b14 | |||
1bb847a51c | |||
ce9feeafdf | |||
415f0b3e6d | |||
94431756ff | |||
5f6c54bb90 | |||
f994a41845 | |||
f3760318b7 | |||
c2362e6875 | |||
d91b24723d | |||
2d28b7d4ff | |||
86d3fc8621 | |||
422c7ff855 | |||
1c7ccbae12 | |||
ed2a81f115 | |||
7ed8ac208a | |||
aa12098cb5 | |||
5d4bb90703 | |||
fad9f89846 | |||
527308a049 | |||
68b318ab97 | |||
65bae2736d | |||
a923caec0b | |||
4d7332c4ee | |||
4f3f1f3e4c | |||
2a954b5b5b | |||
b96b3b099f | |||
bb31612ebe | |||
d2c5ab1cc4 | |||
a01584ad9d | |||
9651f3823d | |||
0544cdedeb | |||
df0239ae68 | |||
c8bf2a0d82 | |||
4d96804b22 | |||
ce9db42c23 | |||
a844dbc587 | |||
28952cb0b0 | |||
fe29579755 | |||
b816f1fbda | |||
1320e4ddaf | |||
f4a7277d61 | |||
34d7b18c85 | |||
d72d516a92 | |||
f6c482c65d | |||
dec8a2b9ab | |||
a5bc39be55 | |||
c62ad5f466 | |||
effa115ed2 | |||
c992cb4e42 | |||
b9504fcd44 | |||
299bcd4b92 | |||
f56098dd4c | |||
e0187b2d8e | |||
31682f5f2d | |||
221087ffff | |||
c7fc4f0f8e | |||
2eece1d11a | |||
5ba05212ec | |||
9e457871b4 | |||
b5481262fb | |||
98e98f083e | |||
d60777b9cc | |||
8b5e42fe84 | |||
d89d152ad7 | |||
47a3736b24 | |||
1cd7cf340a | |||
3a25a05d9c | |||
d2acfd5d1f | |||
9dfcd8ea69 | |||
ee65f95fe3 | |||
b9cc6d7e23 | |||
1e97e5e536 | |||
440a1058b3 | |||
ff489515be | |||
536a502b60 | |||
db0ff4ecd1 | |||
e4aed56d72 | |||
1427a97dd9 | |||
d7318f97e6 | |||
d1a4cab134 | |||
8e7d310439 | |||
9347664622 | |||
4e240e4992 | |||
626e190d91 | |||
1933da7044 | |||
494f408320 | |||
299afc1425 | |||
0679b6399f | |||
862f8ea2d4 | |||
cae016564e | |||
e223f8fac2 | |||
c86fa8ad3b | |||
ba4cf75e0f | |||
9f98628709 | |||
0b2d816320 | |||
8b1c4ff081 | |||
fde0b717d3 | |||
228cdca250 | |||
18386ae66f | |||
5c5ea6dec1 | |||
2e1657167f | |||
c91a0d2a35 | |||
d465511812 | |||
6b98694caa | |||
d82e05f72d | |||
48622a24db | |||
94a274ced4 | |||
a7977cf1a5 | |||
3fffd2ed0b | |||
a0d5f37402 | |||
1b11ef006a | |||
155bbfa984 | |||
89aae8b344 | |||
28a0ba4768 | |||
708969c126 | |||
cc492bf1a3 | |||
901c21e499 | |||
16c6f08e2d | |||
6e9f27d63c | |||
5b282ce3b4 | |||
c7b2446164 | |||
0e43c618a5 | |||
af6100b90f | |||
a4cd248368 | |||
6e52723c8c | |||
a3ad92b9d9 | |||
b07827790f | |||
85e00a195c | |||
081dd2c4bb | |||
bbfa76a2c9 | |||
16a060131a | |||
6dabc68d29 | |||
ac0593bfb3 | |||
ac3e9eab25 | |||
6de426a574 | |||
c3a619f114 | |||
128545cc2b | |||
8152898c4e | |||
852bf452b6 | |||
b38e80f846 | |||
a383ac10d9 | |||
2c32f5c593 | |||
41cbee2cd2 | |||
1f8944852a | |||
95dd03b298 | |||
a0cfaff528 | |||
d6542383ed | |||
afed387bcf | |||
313949f087 | |||
e5c8e2e7f4 | |||
845bbc5208 | |||
7a26ff4de8 | |||
a1f3c40a2d | |||
1fdbc2bc22 | |||
0f4def2338 | |||
7939f7ad50 | |||
8bfc3c5ea6 | |||
bf46f3fe8f | |||
55141aa875 | |||
4e4792d6dc | |||
2aca019d84 | |||
864249b62d | |||
d1fb34694c | |||
d1fc31b894 | |||
f6bf2531bb | |||
681390f22f | |||
0ee675e554 | |||
7e1a60e61d | |||
4cd11fdbc7 | |||
05c7a26e3a | |||
6762978ddf | |||
658650cf24 | |||
8a662b35e1 | |||
3cd7c0194f | |||
05f29639e5 | |||
5c18ffdae2 | |||
d3cee46e93 | |||
94c589f696 | |||
490fbf4cb5 | |||
d46ce7eb63 | |||
169e225ccd | |||
ceb0c602c9 | |||
95722e3bbb | |||
1cde26771a | |||
cd3c9d879c | |||
398c4fbf99 | |||
e7b4a985b4 | |||
6f76fea188 | |||
f6b8e7f234 | |||
041fa3e340 | |||
408ee41990 | |||
ed4be773a2 | |||
fcdb57f31d | |||
47b3368f78 | |||
20ce498d23 | |||
354c9b412e | |||
1c08cedd8a | |||
e2121d809e | |||
9c1065bc1b | |||
27136bbce8 | |||
c3238b7e02 | |||
b11640b477 | |||
2453f5b717 | |||
65c5c5f894 | |||
64d3c99f99 | |||
6c0890594b | |||
fb271953f7 | |||
7080c5679f | |||
427db5bd59 | |||
c09eac49c9 | |||
ae6f87eb42 | |||
82b3c5e2f3 | |||
e41ba279e9 | |||
c259c918ac | |||
2f7438f0d5 | |||
37a7b362d8 | |||
c0f098a578 | |||
21404c23dd | |||
eeefc9cf4b | |||
24b2475b11 | |||
2defe6f597 | |||
f9dc460325 | |||
30b83b5ff0 | |||
003afc8b56 | |||
95a97a197a | |||
eccd8b3c0e | |||
a43046c921 | |||
b360fb9ca0 | |||
0bf185e143 | |||
da3d134be0 | |||
b4c4746d43 | |||
fdd1ad9b17 | |||
1be8d9d46f | |||
51799353a6 | |||
3ad13a592d | |||
55934918ff | |||
ab93e4f168 | |||
e1ad0b0889 | |||
cbe3e7617c | |||
94c8966e86 | |||
d973a062c2 | |||
ba41dbc69a | |||
96380dd462 | |||
61bd765784 | |||
4a0f06193b | |||
826917ef17 | |||
4e1dbbbecf | |||
b5b0de2083 | |||
a95fcbbdbf | |||
7a73ec7c06 | |||
0c1f2252a1 | |||
98a397696c | |||
225b7d7db7 | |||
f968d4c333 | |||
59e15be524 | |||
ccabe93ae8 | |||
56def6def4 | |||
3b1a1efed2 | |||
185869e628 | |||
108f6238e3 | |||
d3e5a63fa2 | |||
0847e60d2a | |||
ac60ec4320 | |||
93debc00dc | |||
ff75846d2d | |||
53c767140d | |||
839a747ce8 | |||
f78a3f88ff | |||
142987259c | |||
c8d41f987f | |||
d139dd88e8 | |||
7898a5f4eb | |||
53efbf3ca9 | |||
b6e5ff2f3d | |||
ae1386a1d7 | |||
2f730303c2 | |||
e98ec9ec75 | |||
ffecef901a | |||
5c13cbb08f | |||
64cfbe9514 | |||
5cc21c87fb | |||
505e0c79d9 | |||
ca9d59c1c1 | |||
8319dbb56a | |||
b1b6697c37 | |||
280716394d | |||
5795f72eab | |||
7e16c8959b | |||
dfc188a24d | |||
d18bae0c95 | |||
747746cba1 | |||
5b73edec8c | |||
3750781bce | |||
e646e53dac | |||
6b8aa43ec0 | |||
e8a20c7e8a | |||
0423ed01a6 | |||
4a600c2611 | |||
e5faa23d4f | |||
b2f9c219b1 | |||
77d65760f0 | |||
98d0460af0 | |||
de8d93341c | |||
0b6a773087 | |||
dc1aa676c4 | |||
5ae9cc1cd7 | |||
f84bc53c8d | |||
b26e9d0338 | |||
dbd62b8622 | |||
20c80352bf | |||
9d70fb2b86 | |||
71aad26d44 | |||
3a1918eb2f | |||
a1709c07d9 | |||
b8c1176c79 | |||
03b5a57474 | |||
f58cf4826a | |||
d050cc5e13 | |||
6ef88b6303 | |||
3e15840b14 | |||
0d147cbd94 | |||
be93f7480a | |||
2e5f24f1f8 | |||
23cf4bd59b | |||
051c34bc5d | |||
9623ceb4d5 | |||
e1a7395880 | |||
51aeeca024 | |||
076e8bf6a3 | |||
73c5b9b847 | |||
f4f3eed78d | |||
89909c15bc | |||
78b3d7ff2d | |||
012193c74e | |||
539abe5151 | |||
7e5aba140e | |||
6b933391e5 | |||
1e2a5ee21d | |||
225a5ef808 | |||
396d0d9bdc | |||
88c8fb74bb | |||
fd902c7a58 | |||
06cbebe22e | |||
ba4a9e1586 | |||
285386e47f | |||
c65fec7271 | |||
879a4b38aa | |||
13c87e38ed | |||
718154cfb4 | |||
26de9b9714 | |||
3365facf9f | |||
8a4826164b | |||
d6eabae4f0 | |||
6bd81bb92e | |||
126a91dfec | |||
51fa147b99 | |||
6160877167 | |||
717f049579 | |||
f71331056c | |||
c131ff2662 | |||
616447e01d | |||
8c1d66bcf3 | |||
bea580b906 | |||
c513e02b24 | |||
90d71deb0f | |||
fc0776303a | |||
bb0c6f9a8a | |||
dae21e7681 | |||
d28437ecc0 | |||
7fec24af67 | |||
0de3637569 | |||
f94c7cef59 | |||
7734d63b1b | |||
f894504761 | |||
7aa9b4ee64 | |||
a12250dc16 | |||
d8fbe1a63e | |||
91e1760719 | |||
02c8a62e7d | |||
0c9bcfb8ac | |||
bd4c5037c7 | |||
ccaaedf38f | |||
751f294164 | |||
e2acbe8499 | |||
aba880a6b3 | |||
616e8da0a5 | |||
a220774a3b | |||
4fc8224264 | |||
66dae5840c | |||
89b9e6e531 | |||
fc4623381a | |||
1023e925f6 | |||
5d65365751 | |||
ee64a6ec7e | |||
9bc09105d7 | |||
4b96632a69 | |||
22a806ca6f | |||
d8dc977fc1 | |||
6d900b8ffb | |||
5a2c070898 | |||
58f17ddb09 | |||
47c9786bab | |||
e5edbeacb4 | |||
964fb20df9 | |||
309ed80446 | |||
01f2eb6615 | |||
3a55c7aaba | |||
243f41bf28 | |||
934b28f5b6 | |||
edfc03bed2 | |||
59ce71b64d | |||
d473a7dc22 | |||
efb063d600 | |||
12fe55905c | |||
aed831c075 | |||
5ad15fad8b | |||
a7d328896c | |||
1274a151d0 | |||
d93d639345 | |||
e0d9a16985 | |||
7f1070dde6 | |||
7f1e70329c | |||
186c8fbb62 | |||
c935be6a49 | |||
4ee502fa1a | |||
084805b248 | |||
eaebd258c0 | |||
2843a20814 | |||
08a56726a8 | |||
7cad8654e5 | |||
841cfe37dd | |||
849a41293f | |||
5b17edb3f9 | |||
9f2047dad6 | |||
c01c53c5c7 | |||
27bf1684cb | |||
be2aee3354 | |||
5f42a07d0d | |||
8a94c945b7 | |||
7740028291 | |||
7369e9c233 | |||
8c66825a78 | |||
a56f8272a9 | |||
e846ca392f | |||
f9ec89cf7a | |||
b935bc526a | |||
97617ced4a | |||
d575c7c2a9 | |||
99a3bbc4f9 | |||
80226cb7d3 | |||
6189e0cd50 | |||
2254421ead | |||
4934f5846b | |||
c8c1aabf20 | |||
93b901a286 | |||
518a445074 | |||
080a6db657 | |||
d49b1bd78a | |||
bd96050d84 | |||
2a90ad9e53 | |||
16758293ff | |||
e965322a98 | |||
fcf5c41b43 | |||
88adbf0ca2 | |||
3df142db7a | |||
f90fc4bfa2 | |||
dc1f9fb243 | |||
7c30c8aa07 | |||
b1d13105e7 | |||
287537b34a | |||
fe04014e1c | |||
094b5834b7 | |||
1eb98cc74f | |||
232aa069d2 | |||
a69408fa25 | |||
75011d0b4e | |||
28ae70ed20 | |||
2727d39fa4 | |||
467f99b3bb | |||
d53c9c5ecf | |||
48c19b4f3c | |||
16e5b08a0f | |||
636a69e9e1 | |||
45d40dc159 | |||
88abb79a96 | |||
1e1d5c3f7d | |||
95e9faff95 | |||
979ff60a6b | |||
ea2e8f0787 | |||
3893c12054 | |||
8ad47a315b | |||
3b576c3047 | |||
4d83dab4f3 | |||
28a7ec4f35 | |||
b5aae88a0b | |||
bee97237d9 | |||
8c8e950455 | |||
ad8b344298 | |||
6d310d417a | |||
9dca893ce7 | |||
e3444e666b | |||
e37e69311b | |||
6918f863b1 | |||
9ee05bf591 | |||
e15700235e | |||
1c7c07e128 | |||
4fbc4e3be9 | |||
e251c81d43 | |||
f30a5074ab | |||
f6ae490723 | |||
7f96c43d6f | |||
52260a63fb | |||
82b528ee30 | |||
a443bbdf80 | |||
26ee46b246 | |||
cf37816602 | |||
b8087f6c48 | |||
28cbe8fbeb | |||
28210ee31d | |||
0caf875399 | |||
323684efff | |||
678ee0615d | |||
6c889def37 | |||
93586deb6f | |||
b6b9ffd15c | |||
1189b5f693 | |||
1c2b6d59da | |||
eacc28fedf | |||
5c85ee1214 | |||
7df7453365 | |||
3d8297247e | |||
662f66e501 | |||
9131cb4790 | |||
3b616676c6 | |||
cce759b8dd | |||
98b6c9b89e | |||
5370201df8 | |||
419c395966 | |||
2962ce9a0f | |||
c96398aa0c | |||
e68ce1d680 | |||
d34f10b4ea | |||
7e2c1f274b | |||
9fe3811c45 | |||
b74bccee0a | |||
a2d170f415 | |||
03f762db86 | |||
aea859af52 | |||
f61fd7b7f1 | |||
5682129b1d | |||
c3431f19bf | |||
65b11cb968 | |||
f4f60d38b8 | |||
4337345103 | |||
52f460f66d | |||
d486c72e02 | |||
bdfc55b951 | |||
b0f6026c23 | |||
b2aca491b6 | |||
401fc39879 | |||
d4b0839328 | |||
37c64841ff | |||
8f8dd076ff | |||
51fcf65424 | |||
56b19fa2b0 | |||
fe38dab405 | |||
6cb2aaab65 | |||
c604c4591f | |||
f0f54434cb | |||
f9de85c257 | |||
44f817646e | |||
91786779f8 | |||
27d0aed2c9 | |||
7767c96a9e | |||
3388bb50e1 | |||
1554c587b3 | |||
ce70e73a34 | |||
804ec9246f | |||
f029321664 | |||
d41b7f64e4 | |||
0366d1afb9 | |||
4ef3073ca4 | |||
68a53aa884 | |||
2358b3ff26 | |||
00ed1d2817 | |||
5b6fdb6526 | |||
fe700d1e7b | |||
eac611ab1e | |||
0635313566 | |||
663299c91e | |||
523a6e989a | |||
13f4aee5ee | |||
bbc0e2106c | |||
eb6ee52aaa | |||
80e330d4c3 | |||
a3adc49d8c | |||
9c6eeed0f8 | |||
705e9a93f8 | |||
572a217050 | |||
d58798e36c | |||
e98634a277 | |||
f1f08eced0 | |||
6c2da9f0e4 | |||
e158635f57 | |||
5a241e77da | |||
68e397ab34 | |||
4c78b94cd8 | |||
3a9cc9b079 | |||
6ff8c6e7f3 | |||
6f90425154 | |||
49ec9b1d9e | |||
a0e35ad644 | |||
b91dc77d6f | |||
b462b5a5c8 | |||
b5e7fb20b6 | |||
9d245add9c | |||
ded03ed743 | |||
6cc260c04e | |||
5b4354a6f3 | |||
34de36fe01 | |||
08c2cdbf1d | |||
dedbeb3eab | |||
d88bf16500 | |||
ad9c8318a7 | |||
f2778c0729 | |||
03ca73658c | |||
1da5f6c30c | |||
bee8a99a34 | |||
f5efd41dc1 | |||
c202f8cf1d | |||
0c226c7629 | |||
a9e772f330 | |||
86cc76388e | |||
0f4e9af172 | |||
3a1352c8ec | |||
2c86fd947f | |||
927484a71f | |||
88adb8f5ef | |||
98e7f5cb22 | |||
67e5957064 | |||
8c3473a91a | |||
1c775cb759 | |||
c4054d4984 | |||
76e2f9f3ac | |||
41a40b8b9f | |||
6b8694bfbf | |||
2d696b6806 | |||
709a5ec89a | |||
932bb732e0 | |||
dd4e29542c | |||
726e66ca66 | |||
474fd70ec7 | |||
5074dbc3c6 | |||
eb54e7f1ae | |||
8983dd97a1 | |||
7eaea28970 | |||
907605c59c | |||
58921592c8 | |||
b9c49c38ed | |||
76c97027c8 | |||
5db3620f49 | |||
a2e6fa0b16 | |||
1d359f0fc4 | |||
885d245afb | |||
75d01c0c11 | |||
ea219e3ddd | |||
e9cd54b2f4 | |||
a8b6573f96 | |||
4e158c8ba7 | |||
121c84a2d1 | |||
bfb76de9ab | |||
2434605c06 | |||
a0f15bfb56 | |||
7fabd14a63 | |||
6b4d2aeb07 | |||
5ab61b46b5 | |||
39c9691d70 | |||
d00960b33f | |||
4a5cfac2ea | |||
7e1d21239f | |||
1a8b870a9e | |||
3e150db493 | |||
1cf8b7e952 | |||
ea75432f12 | |||
85370dfd21 | |||
8a0afef825 | |||
76f196206b | |||
bf3e8195f7 | |||
bce3071a12 | |||
911f684e4d | |||
49bc156a56 | |||
791c3701d7 | |||
372af54e46 | |||
20c8953e5b | |||
2f9ad54bae | |||
57c22cddb8 | |||
a5026849a3 | |||
60dc765178 | |||
5e1c150024 | |||
0fd06bb592 | |||
9641c8cf49 | |||
4ca31be4a2 | |||
667f18cbfe | |||
4df5050760 | |||
f50881a72f | |||
b80696af00 | |||
3cb2f6dcf7 | |||
b1e2c4ce72 | |||
89ff9dd5ac | |||
8b95b173cd | |||
80a877ddab | |||
e892b21872 | |||
c344913ae8 | |||
3eef8fba27 | |||
d34e47f716 | |||
9bfba28d01 | |||
cc43357fb4 | |||
bce5ef2dca | |||
3021ac4b95 | |||
385e80d185 | |||
bd1c8873d0 | |||
6ac3bdb94a | |||
e964a0a1f0 | |||
97255fbd62 | |||
d5041f64be | |||
64f649d1f9 | |||
097c7e5397 | |||
c6adc00eac | |||
b1710bfa31 | |||
0e52c42970 | |||
2b136b2981 | |||
b95e5e36dc | |||
1bc5bc7f1c | |||
946d7015a2 | |||
4adf5720f0 | |||
973a3f03c3 | |||
06177afd6a | |||
e5937638d4 | |||
7c4f14f941 | |||
ead54d6c37 | |||
b749f3c724 | |||
d279aecb87 | |||
67de0fc8da | |||
8ed2399517 | |||
cf340011e2 | |||
ec2ad37860 | |||
3443e82812 | |||
63138507d6 | |||
b2eb07db14 | |||
379a845166 | |||
266cf93584 | |||
0ee71e9a09 | |||
ea07afcc0b | |||
43cd6d34ca | |||
3b67032adb | |||
2d46a0605b | |||
ba54664748 | |||
a79f4c10a1 | |||
bd04b28b9e | |||
cbadecab33 | |||
8c079787f0 | |||
62528e6a0b | |||
49bf8bd830 | |||
c64bc20bb5 | |||
54da891f79 | |||
e847716076 | |||
3a68bbd1b2 | |||
9cb1d03411 | |||
4fed156b90 | |||
de8bcd36e8 | |||
135cfe3238 | |||
6dbfe28427 | |||
2b203c4616 | |||
f12e655cf8 | |||
cf0045a483 | |||
9c81eeace0 | |||
5b333f91f6 | |||
912d926260 | |||
a8dfd640a7 | |||
390044b716 | |||
8ac36e6ee5 | |||
208c693088 | |||
eae2f7d113 | |||
45f92115f9 | |||
42f3adc7a2 | |||
71b40c6d6c | |||
af12089e7a | |||
33677c4b2b | |||
376c8c2e00 | |||
8232e9e8ce | |||
436bf8deb5 | |||
c858a1c9e5 |
17
.github/workflows/ccpp.yml
vendored
17
.github/workflows/ccpp.yml
vendored
@ -1,7 +1,8 @@
|
||||
name: C/C++ CI
|
||||
name: unittest
|
||||
|
||||
on: [push]
|
||||
|
||||
# fake comment to trigger an action 1
|
||||
jobs:
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
@ -16,16 +17,16 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: install redis
|
||||
run: brew install redis
|
||||
|
||||
- name: start redis server
|
||||
run: brew services start redis
|
||||
|
||||
- name: make test
|
||||
run: make test
|
||||
|
||||
# We don't need to have redis running anymore, as we have our fake limited one
|
||||
# - name: install redis
|
||||
# run: brew install redis
|
||||
#
|
||||
# - name: start redis server
|
||||
# run: brew services start redis
|
||||
|
||||
# # Windows does not work yet, I'm stuck at getting CMake to run + finding vcpkg
|
||||
# win:
|
||||
# runs-on: windows-2016
|
||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,7 @@
|
||||
build
|
||||
*.pyc
|
||||
venv
|
||||
ixsnake/ixsnake/.certs/
|
||||
site/
|
||||
ws/.certs/
|
||||
ws/.srl
|
||||
|
@ -113,22 +113,24 @@ else()
|
||||
list( APPEND IXWEBSOCKET_HEADERS ixwebsocket/IXSelectInterruptEventFd.h)
|
||||
endif()
|
||||
|
||||
if (WIN32)
|
||||
set(USE_MBED_TLS TRUE)
|
||||
endif()
|
||||
option(USE_TLS "Enable TLS support" FALSE)
|
||||
|
||||
if (USE_TLS)
|
||||
if (WIN32)
|
||||
option(USE_MBED_TLS "Use Mbed TLS" ON)
|
||||
else()
|
||||
option(USE_MBED_TLS "Use Mbed TLS" OFF)
|
||||
endif()
|
||||
option(USE_OPEN_SSL "Use OpenSSL" OFF)
|
||||
|
||||
if (USE_MBED_TLS)
|
||||
list( APPEND IXWEBSOCKET_HEADERS ixwebsocket/IXSocketMbedTLS.h)
|
||||
list( APPEND IXWEBSOCKET_SOURCES ixwebsocket/IXSocketMbedTLS.cpp)
|
||||
elseif (APPLE AND NOT USE_OPEN_SSL)
|
||||
list( APPEND IXWEBSOCKET_HEADERS ixwebsocket/IXSocketAppleSSL.h)
|
||||
list( APPEND IXWEBSOCKET_SOURCES ixwebsocket/IXSocketAppleSSL.cpp)
|
||||
elseif (WIN32)
|
||||
list( APPEND IXWEBSOCKET_HEADERS ixwebsocket/IXSocketSChannel.h)
|
||||
list( APPEND IXWEBSOCKET_SOURCES ixwebsocket/IXSocketSChannel.cpp)
|
||||
else()
|
||||
set(USE_OPEN_SSL TRUE)
|
||||
set(USE_OPEN_SSL ON)
|
||||
list( APPEND IXWEBSOCKET_HEADERS ixwebsocket/IXSocketOpenSSL.h)
|
||||
list( APPEND IXWEBSOCKET_SOURCES ixwebsocket/IXSocketOpenSSL.cpp)
|
||||
endif()
|
||||
@ -145,19 +147,15 @@ if (USE_TLS)
|
||||
target_compile_definitions(ixwebsocket PUBLIC IXWEBSOCKET_USE_MBED_TLS)
|
||||
elseif (USE_OPEN_SSL)
|
||||
target_compile_definitions(ixwebsocket PUBLIC IXWEBSOCKET_USE_OPEN_SSL)
|
||||
elseif (APPLE)
|
||||
elseif (WIN32)
|
||||
else()
|
||||
target_compile_definitions(ixwebsocket PUBLIC IXWEBSOCKET_USE_OPEN_SSL)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (APPLE AND USE_TLS AND NOT USE_MBED_TLS)
|
||||
if (APPLE AND USE_TLS AND NOT USE_MBED_TLS AND NOT USE_OPEN_SSL)
|
||||
target_link_libraries(ixwebsocket "-framework foundation" "-framework security")
|
||||
endif()
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(ixwebsocket wsock32 ws2_32)
|
||||
target_link_libraries(ixwebsocket wsock32 ws2_32 shlwapi)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
@ -174,7 +172,9 @@ if (USE_TLS AND USE_OPEN_SSL)
|
||||
set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} /usr/local/opt/openssl/include)
|
||||
endif()
|
||||
|
||||
find_package(OpenSSL REQUIRED)
|
||||
if(NOT OPENSSL_FOUND)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
endif()
|
||||
add_definitions(${OPENSSL_DEFINITIONS})
|
||||
message(STATUS "OpenSSL: " ${OPENSSL_VERSION})
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
@ -201,13 +201,13 @@ if (ZLIB_FOUND)
|
||||
include_directories(${ZLIB_INCLUDE_DIRS})
|
||||
target_link_libraries(ixwebsocket ${ZLIB_LIBRARIES})
|
||||
else()
|
||||
add_subdirectory(third_party/zlib)
|
||||
include_directories(third_party/zlib ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib)
|
||||
add_subdirectory(third_party/zlib)
|
||||
target_link_libraries(ixwebsocket zlibstatic)
|
||||
endif()
|
||||
|
||||
set( IXWEBSOCKET_INCLUDE_DIRS
|
||||
.
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
@ -232,6 +232,7 @@ if (USE_WS OR USE_TEST)
|
||||
add_subdirectory(ixsentry)
|
||||
|
||||
add_subdirectory(third_party/spdlog spdlog)
|
||||
add_subdirectory(third_party/sentry-native sentry-native)
|
||||
|
||||
if (USE_WS)
|
||||
add_subdirectory(ws)
|
||||
|
35
Dockerfile
35
Dockerfile
@ -1,35 +0,0 @@
|
||||
FROM alpine:edge as build
|
||||
|
||||
RUN apk add --no-cache gcc g++ musl-dev linux-headers cmake openssl-dev
|
||||
RUN apk add --no-cache make
|
||||
RUN apk add --no-cache zlib-dev
|
||||
|
||||
RUN addgroup -S app && adduser -S -G app app
|
||||
RUN chown -R app:app /opt
|
||||
RUN chown -R app:app /usr/local
|
||||
|
||||
# There is a bug in CMake where we cannot build from the root top folder
|
||||
# So we build from /opt
|
||||
COPY --chown=app:app . /opt
|
||||
WORKDIR /opt
|
||||
|
||||
USER app
|
||||
RUN [ "make", "ws_install" ]
|
||||
|
||||
FROM alpine:edge as runtime
|
||||
|
||||
RUN apk add --no-cache libstdc++
|
||||
RUN apk add --no-cache strace
|
||||
|
||||
RUN addgroup -S app && adduser -S -G app app
|
||||
COPY --chown=app:app --from=build /usr/local/bin/ws /usr/local/bin/ws
|
||||
RUN chmod +x /usr/local/bin/ws
|
||||
RUN ldd /usr/local/bin/ws
|
||||
|
||||
# Now run in usermode
|
||||
USER app
|
||||
WORKDIR /home/app
|
||||
|
||||
ENTRYPOINT ["ws"]
|
||||
EXPOSE 8008
|
||||
CMD ["--help"]
|
1
Dockerfile
Symbolic link
1
Dockerfile
Symbolic link
@ -0,0 +1 @@
|
||||
docker/Dockerfile.centos
|
10
README.md
10
README.md
@ -1,6 +1,6 @@
|
||||
## Hello world
|
||||
|
||||

|
||||

|
||||
|
||||
IXWebSocket is a C++ library for WebSocket client and server development. It has minimal dependencies (no boost), is very simple to use and support everything you'll likely need for websocket dev (SSL, deflate compression, compiles on most platforms, etc...). HTTP client and server code is also available, but it hasn't received as much testing.
|
||||
|
||||
@ -38,4 +38,10 @@ Interested? Go read the [docs](https://machinezone.github.io/IXWebSocket/)! If t
|
||||
|
||||
IXWebSocket is actively being developed, check out the [changelog](https://machinezone.github.io/IXWebSocket/CHANGELOG/) to know what's cooking. If you are looking for a real time messaging service (the chat-like 'server' your websocket code will talk to) with many features such as history, backed by Redis, look at [cobra](https://github.com/machinezone/cobra).
|
||||
|
||||
IXWebSocket client code is autobahn compliant beginning with the 6.0.0 version. See the current [test results](https://bsergean.github.io/IXWebSocket/autobahn/index.html). Some tests are still failing in the server code.
|
||||
IXWebSocket client code is autobahn compliant beginning with the 6.0.0 version. See the current [test results](https://bsergean.github.io/autobahn/reports/clients/index.html). Some tests are still failing in the server code.
|
||||
|
||||
## Users
|
||||
|
||||
If your company or project is using this library, feel free to open an issue or PR to amend this list.
|
||||
|
||||
- [Machine Zone](https://www.mz.com)
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM alpine as build
|
||||
FROM alpine:3.11 as build
|
||||
|
||||
RUN apk add --no-cache gcc g++ musl-dev linux-headers cmake openssl-dev
|
||||
RUN apk add --no-cache make
|
||||
@ -15,20 +15,25 @@ WORKDIR /opt
|
||||
|
||||
USER app
|
||||
RUN [ "make", "ws_install" ]
|
||||
RUN [ "rm", "-rf", "build" ]
|
||||
|
||||
FROM alpine as runtime
|
||||
FROM alpine:3.11 as runtime
|
||||
|
||||
RUN apk add --no-cache libstdc++
|
||||
RUN apk add --no-cache strace
|
||||
RUN apk add --no-cache gdb
|
||||
|
||||
RUN addgroup -S app && adduser -S -G app app
|
||||
COPY --chown=app:app --from=build /usr/local/bin/ws /usr/local/bin/ws
|
||||
RUN chmod +x /usr/local/bin/ws
|
||||
RUN ldd /usr/local/bin/ws
|
||||
|
||||
# Copy source code for gcc
|
||||
COPY --chown=app:app --from=build /opt /opt
|
||||
|
||||
# Now run in usermode
|
||||
USER app
|
||||
WORKDIR /home/app
|
||||
|
||||
ENTRYPOINT ["ws"]
|
||||
EXPOSE 8008
|
||||
CMD ["--help"]
|
||||
|
35
docker/Dockerfile.centos
Normal file
35
docker/Dockerfile.centos
Normal file
@ -0,0 +1,35 @@
|
||||
FROM centos:8 as build
|
||||
|
||||
RUN yum install -y gcc-c++ make cmake zlib-devel openssl-devel redhat-rpm-config
|
||||
|
||||
RUN groupadd app && useradd -g app app
|
||||
RUN chown -R app:app /opt
|
||||
RUN chown -R app:app /usr/local
|
||||
|
||||
# There is a bug in CMake where we cannot build from the root top folder
|
||||
# So we build from /opt
|
||||
COPY --chown=app:app . /opt
|
||||
WORKDIR /opt
|
||||
|
||||
USER app
|
||||
RUN [ "make", "ws_install" ]
|
||||
RUN [ "rm", "-rf", "build" ]
|
||||
|
||||
FROM centos:8 as runtime
|
||||
|
||||
RUN yum install -y gdb strace
|
||||
|
||||
RUN groupadd app && useradd -g app app
|
||||
COPY --chown=app:app --from=build /usr/local/bin/ws /usr/local/bin/ws
|
||||
RUN chmod +x /usr/local/bin/ws
|
||||
RUN ldd /usr/local/bin/ws
|
||||
|
||||
# Copy source code for gcc
|
||||
COPY --chown=app:app --from=build /opt /opt
|
||||
|
||||
# Now run in usermode
|
||||
USER app
|
||||
WORKDIR /home/app
|
||||
|
||||
ENTRYPOINT ["ws"]
|
||||
EXPOSE 8008
|
@ -1,5 +1,180 @@
|
||||
# Changelog
|
||||
All notable changes to this project will be documented in this file.
|
||||
All changes to this project will be documented in this file.
|
||||
|
||||
## [8.1.8] - 2020-03-02
|
||||
|
||||
(websocket server) fix regression with disabling zlib extension on the server side. If a client does not support this extension the server will handle it fine. We still need to figure out how to disable the option.
|
||||
|
||||
## [8.1.7] - 2020-02-26
|
||||
|
||||
(websocket) traffic tracker received bytes is message size while it should be wire size
|
||||
|
||||
## [8.1.6] - 2020-02-26
|
||||
|
||||
(ws_connect) display sent/received bytes statistics on exit
|
||||
|
||||
## [8.1.5] - 2020-02-23
|
||||
|
||||
(server) give thread name to some usual worker threads / unittest is broken !!
|
||||
|
||||
## [8.1.4] - 2020-02-22
|
||||
|
||||
(websocket server) fix regression from 8.1.2, where per-deflate message compression was always disabled
|
||||
|
||||
## [8.1.3] - 2020-02-21
|
||||
|
||||
(client + server) Fix #155 / http header parser should treat the space(s) after the : delimiter as optional. Fixing this bug made us discover that websocket sub-protocols are not properly serialiazed, but start with a ,
|
||||
|
||||
## [8.1.2] - 2020-02-18
|
||||
|
||||
(WebSocketServer) add option to disable deflate compression, exposed with the -x option to ws echo_server
|
||||
|
||||
## [8.1.1] - 2020-02-18
|
||||
|
||||
(ws cobra to statsd and sentry sender) exit if no messages are received for one minute, which is a sign that something goes wrong on the server side. That should be changed to be configurable in the future
|
||||
|
||||
## [8.1.0] - 2020-02-13
|
||||
|
||||
(http client + sentry minidump upload) Multipart stream closing boundary is invalid + mark some options as mandatory in the command line tools
|
||||
|
||||
## [8.0.7] - 2020-02-12
|
||||
|
||||
(build) remove the unused subtree which was causing some way of installing to break
|
||||
|
||||
## [8.0.6] - 2020-01-31
|
||||
|
||||
(snake) add an option to disable answering pongs as response to pings, to test cobra client behavior with hanged connections
|
||||
|
||||
## [8.0.5] - 2020-01-31
|
||||
|
||||
(IXCobraConnection) set a ping timeout of 90 seconds. If no pong messages are received as responses to ping for a while, give up and close the connection
|
||||
|
||||
## [8.0.4] - 2020-01-31
|
||||
|
||||
(cobra to sentry) remove noisy logging
|
||||
|
||||
## [8.0.3] - 2020-01-30
|
||||
|
||||
(ixcobra) check if we are authenticated in publishNext before trying to publish a message
|
||||
|
||||
## [8.0.2] - 2020-01-28
|
||||
|
||||
Extract severity level when emitting messages to sentry
|
||||
|
||||
## [8.0.1] - 2020-01-28
|
||||
|
||||
Fix bug #151 - If a socket connection is interrupted, calling stop() on the IXWebSocket object blocks until the next retry
|
||||
|
||||
## [8.0.0] - 2020-01-26
|
||||
|
||||
(SocketServer) add ability to bind on an ipv6 address
|
||||
|
||||
## [7.9.6] - 2020-01-22
|
||||
|
||||
(ws) add a dnslookup sub-command, to get the ip address of a remote host
|
||||
|
||||
## [7.9.5] - 2020-01-14
|
||||
|
||||
(windows) fix #144, get rid of stubbed/un-implemented windows schannel ssl backend
|
||||
|
||||
## [7.9.4] - 2020-01-12
|
||||
|
||||
(openssl + mbedssl) fix #140, can send large files with ws send over ssl / still broken with apple ssl
|
||||
|
||||
## [7.9.3] - 2020-01-10
|
||||
|
||||
(apple ssl) model write method after the OpenSSL one for consistency
|
||||
|
||||
## [7.9.2] - 2020-01-06
|
||||
|
||||
(apple ssl) unify read and write ssl utility code
|
||||
|
||||
## [7.9.1] - 2020-01-06
|
||||
|
||||
(websocket client) better error propagation when errors are detected while sending data
|
||||
(ws send) detect failures to send big files, terminate in those cases and report error
|
||||
|
||||
## [7.9.0] - 2020-01-04
|
||||
|
||||
(ws send) add option (-x) to disable per message deflate compression
|
||||
|
||||
## [7.8.9] - 2020-01-04
|
||||
|
||||
(ws send + receive) handle all message types (ping + pong + fragment) / investigate #140
|
||||
|
||||
## [7.8.8] - 2019-12-28
|
||||
|
||||
(mbedtls) fix related to private key file parsing and initialization
|
||||
|
||||
## [7.8.6] - 2019-12-28
|
||||
|
||||
(ws cobra to sentry/statsd) fix for handling null events properly for empty queues + use queue to send data to statsd
|
||||
|
||||
## [7.8.5] - 2019-12-28
|
||||
|
||||
(ws cobra to sentry) handle null events for empty queues
|
||||
|
||||
## [7.8.4] - 2019-12-27
|
||||
|
||||
(ws cobra to sentry) game is picked in a fair manner, so that all games get the same share of sent events
|
||||
|
||||
## [7.8.3] - 2019-12-27
|
||||
|
||||
(ws cobra to sentry) refactor queue related code into a class
|
||||
|
||||
## [7.8.2] - 2019-12-25
|
||||
|
||||
(ws cobra to sentry) bound the queue size used to hold up cobra messages before they are sent to sentry. Default queue size is a 100 messages. Without such limit the program runs out of memory when a subscriber receive a lot of messages that cannot make it to sentry
|
||||
|
||||
## [7.8.1] - 2019-12-25
|
||||
|
||||
(ws client) use correct compilation defines so that spdlog is not used as a header only library (reduce binary size and increase compilation speed)
|
||||
|
||||
## [7.8.0] - 2019-12-24
|
||||
|
||||
(ws client) all commands use spdlog instead of std::cerr or std::cout for logging
|
||||
|
||||
## [7.6.5] - 2019-12-24
|
||||
|
||||
(cobra client) send a websocket ping every 30s to keep the connection opened
|
||||
|
||||
## [7.6.4] - 2019-12-22
|
||||
|
||||
(client) error handling, quote url in error case when failing to parse one
|
||||
(ws) ws_cobra_publish: register callbacks before connecting
|
||||
(doc) mention mbedtls in supported ssl server backend
|
||||
|
||||
## [7.6.3] - 2019-12-20
|
||||
|
||||
(tls) add a simple description of the TLS configuration routine for debugging
|
||||
|
||||
## [7.6.2] - 2019-12-20
|
||||
|
||||
(mbedtls) correct support for using own certificate and private key
|
||||
|
||||
## [7.6.1] - 2019-12-20
|
||||
|
||||
(ws commands) in websocket proxy, disable automatic reconnections + in Dockerfile, use alpine 3.11
|
||||
|
||||
## [7.6.0] - 2019-12-19
|
||||
|
||||
(cobra) Add TLS options to all cobra commands and classes. Add example to the doc.
|
||||
|
||||
## [7.5.8] - 2019-12-18
|
||||
|
||||
(cobra-to-sentry) capture application version from device field
|
||||
|
||||
## [7.5.7] - 2019-12-18
|
||||
|
||||
(tls) Experimental TLS server support with mbedtls (windows) + process cert tlsoption (client + server)
|
||||
|
||||
## [7.5.6] - 2019-12-18
|
||||
|
||||
(tls servers) Make it clear that apple ssl and mbedtls backends do not support SSL in server mode
|
||||
|
||||
## [7.5.5] - 2019-12-17
|
||||
|
||||
(tls options client) TLSOptions struct _validated member should be initialized to false
|
||||
|
||||
## [7.5.4] - 2019-12-16
|
||||
|
||||
|
@ -23,6 +23,16 @@ Options for building:
|
||||
|
||||
If you are on Windows, look at the [appveyor](https://github.com/machinezone/IXWebSocket/blob/master/appveyor.yml) file that has instructions for building dependencies.
|
||||
|
||||
It is also possible to externally include the project, so that everything is fetched over the wire when you build like so:
|
||||
|
||||
```
|
||||
ExternalProject_Add(
|
||||
IXWebSocket
|
||||
GIT_REPOSITORY https://github.com/machinezone/IXWebSocket.git
|
||||
...
|
||||
)
|
||||
```
|
||||
|
||||
### vcpkg
|
||||
|
||||
It is possible to get IXWebSocket through Microsoft [vcpkg](https://github.com/microsoft/vcpkg).
|
||||
@ -33,11 +43,16 @@ vcpkg install ixwebsocket
|
||||
|
||||
### Conan
|
||||
|
||||
Support for building with conan was contributed by Olivia Zoe (thanks!). The package name to reference is `IXWebSocket/5.0.0@LunarWatcher/stable`, and a list of the uploaded versions is available on [Bintray](https://bintray.com/oliviazoe0/conan-packages/IXWebSocket%3ALunarWatcher). The package is in the process to be published to the official conan package repo, but in the meantime, it can be accessed by adding a new remote
|
||||
[  ](https://bintray.com/conan/conan-center/ixwebsocket%3A_/_latestVersion)
|
||||
|
||||
```
|
||||
conan remote add remote_name_here https://api.bintray.com/conan/oliviazoe0/conan-packages
|
||||
```
|
||||
Conan is currently supported through a recipe in [Conan Center](https://github.com/conan-io/conan-center-index/tree/master/recipes/ixwebsocket) ([Bintray entry](https://bintray.com/conan/conan-center/ixwebsocket%3A_)).
|
||||
|
||||
Package reference
|
||||
|
||||
* Conan 1.21.0 and up: `ixwebsocket/7.9.2`
|
||||
* Earlier versions: `ixwebsocket/7.9.2@_/_`
|
||||
|
||||
Note that the version listed here might not be the latest one. See Bintray or the recipe itself for the latest version. If you're migrating from the previous, custom Bintray remote, note that the package reference _has_ to be lower-case.
|
||||
|
||||
### Docker
|
||||
|
||||
|
125
docs/ws.md
125
docs/ws.md
@ -243,6 +243,127 @@ Options:
|
||||
--transfer-timeout INT Transfer timeout
|
||||
```
|
||||
|
||||
## Cobra Client
|
||||
## Cobra client and server
|
||||
|
||||
[cobra](https://github.com/machinezone/cobra) is a real time messenging server. ws has a sub-command to interact with cobra.
|
||||
[cobra](https://github.com/machinezone/cobra) is a real time messenging server. ws has several sub-command to interact with cobra. There is also a minimal cobra compatible server named snake available.
|
||||
|
||||
Below are examples on running a snake server and clients with TLS enabled (the server only works with the OpenSSL and the Mbed TLS backend for now).
|
||||
|
||||
First, generate certificates.
|
||||
|
||||
```
|
||||
$ cd /path/to/IXWebSocket
|
||||
$ cd ixsnake/ixsnake
|
||||
$ bash ../../ws/generate_certs.sh
|
||||
Generating RSA private key, 2048 bit long modulus
|
||||
.....+++
|
||||
.................+++
|
||||
e is 65537 (0x10001)
|
||||
generated ./.certs/trusted-ca-key.pem
|
||||
generated ./.certs/trusted-ca-crt.pem
|
||||
Generating RSA private key, 2048 bit long modulus
|
||||
..+++
|
||||
.......................................+++
|
||||
e is 65537 (0x10001)
|
||||
generated ./.certs/trusted-server-key.pem
|
||||
Signature ok
|
||||
subject=/O=machinezone/O=IXWebSocket/CN=trusted-server
|
||||
Getting CA Private Key
|
||||
generated ./.certs/trusted-server-crt.pem
|
||||
Generating RSA private key, 2048 bit long modulus
|
||||
...................................+++
|
||||
..................................................+++
|
||||
e is 65537 (0x10001)
|
||||
generated ./.certs/trusted-client-key.pem
|
||||
Signature ok
|
||||
subject=/O=machinezone/O=IXWebSocket/CN=trusted-client
|
||||
Getting CA Private Key
|
||||
generated ./.certs/trusted-client-crt.pem
|
||||
Generating RSA private key, 2048 bit long modulus
|
||||
..............+++
|
||||
.......................................+++
|
||||
e is 65537 (0x10001)
|
||||
generated ./.certs/untrusted-ca-key.pem
|
||||
generated ./.certs/untrusted-ca-crt.pem
|
||||
Generating RSA private key, 2048 bit long modulus
|
||||
..........+++
|
||||
................................................+++
|
||||
e is 65537 (0x10001)
|
||||
generated ./.certs/untrusted-client-key.pem
|
||||
Signature ok
|
||||
subject=/O=machinezone/O=IXWebSocket/CN=untrusted-client
|
||||
Getting CA Private Key
|
||||
generated ./.certs/untrusted-client-crt.pem
|
||||
Generating RSA private key, 2048 bit long modulus
|
||||
.....................................................................................+++
|
||||
...........+++
|
||||
e is 65537 (0x10001)
|
||||
generated ./.certs/selfsigned-client-key.pem
|
||||
Signature ok
|
||||
subject=/O=machinezone/O=IXWebSocket/CN=selfsigned-client
|
||||
Getting Private key
|
||||
generated ./.certs/selfsigned-client-crt.pem
|
||||
```
|
||||
|
||||
Now run the snake server.
|
||||
|
||||
```
|
||||
$ export certs=.certs
|
||||
$ ws snake --tls --port 8765 --cert-file ${certs}/trusted-server-crt.pem --key-file ${certs}/trusted-server-key.pem --ca-file ${certs}/trusted-ca-crt.pem
|
||||
{
|
||||
"apps": {
|
||||
"FC2F10139A2BAc53BB72D9db967b024f": {
|
||||
"roles": {
|
||||
"_sub": {
|
||||
"secret": "66B1dA3ED5fA074EB5AE84Dd8CE3b5ba"
|
||||
},
|
||||
"_pub": {
|
||||
"secret": "1c04DB8fFe76A4EeFE3E318C72d771db"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
redis host: 127.0.0.1
|
||||
redis password:
|
||||
redis port: 6379
|
||||
```
|
||||
|
||||
As a new connection comes in, such output should be printed
|
||||
|
||||
```
|
||||
[2019-12-19 20:27:19.724] [info] New connection
|
||||
id: 0
|
||||
Uri: /v2?appkey=_health
|
||||
Headers:
|
||||
Connection: Upgrade
|
||||
Host: 127.0.0.1:8765
|
||||
Sec-WebSocket-Extensions: permessage-deflate; server_max_window_bits=15; client_max_window_bits=15
|
||||
Sec-WebSocket-Key: d747B0fE61Db73f7Eh47c0==
|
||||
Sec-WebSocket-Protocol: json
|
||||
Sec-WebSocket-Version: 13
|
||||
Upgrade: websocket
|
||||
User-Agent: ixwebsocket/7.5.8 macos ssl/OpenSSL OpenSSL 1.0.2q 20 Nov 2018 zlib 1.2.11
|
||||
```
|
||||
|
||||
To connect and publish a message, do:
|
||||
|
||||
```
|
||||
$ export certs=.certs
|
||||
$ cd /path/to/ws/folder
|
||||
$ ls cobraMetricsSample.json
|
||||
cobraMetricsSample.json
|
||||
$ ws cobra_publish --endpoint wss://127.0.0.1:8765 --appkey FC2F10139A2BAc53BB72D9db967b024f --rolename _pub --rolesecret 1c04DB8fFe76A4EeFE3E318C72d771db --channel foo --cert-file ${certs}/trusted-client-crt.pem --key-file ${certs}/trusted-client-key.pem --ca-file ${certs}/trusted-ca-crt.pem cobraMetricsSample.json
|
||||
[2019-12-19 20:46:42.656] [info] Publisher connected
|
||||
[2019-12-19 20:46:42.657] [info] Connection: Upgrade
|
||||
[2019-12-19 20:46:42.657] [info] Sec-WebSocket-Accept: rs99IFThoBrhSg+k8G4ixH9yaq4=
|
||||
[2019-12-19 20:46:42.657] [info] Sec-WebSocket-Extensions: permessage-deflate; server_max_window_bits=15; client_max_window_bits=15
|
||||
[2019-12-19 20:46:42.657] [info] Server: ixwebsocket/7.5.8 macos ssl/OpenSSL OpenSSL 1.0.2q 20 Nov 2018 zlib 1.2.11
|
||||
[2019-12-19 20:46:42.657] [info] Upgrade: websocket
|
||||
[2019-12-19 20:46:42.658] [info] Publisher authenticated
|
||||
[2019-12-19 20:46:42.658] [info] Published msg 3
|
||||
[2019-12-19 20:46:42.659] [info] Published message id 3 acked
|
||||
```
|
||||
|
||||
To use OpenSSL on macOS, compile with `make ws_openssl`. First you will have to install OpenSSL libraries, which can be done with Homebrew. Use `make ws_mbedtls` accordingly to use MbedTLS.
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "IXCobraConnection.h"
|
||||
#include <ixcrypto/IXHMac.h>
|
||||
#include <ixwebsocket/IXWebSocket.h>
|
||||
#include <ixwebsocket/IXSocketTLSOptions.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
@ -23,6 +24,7 @@ namespace ix
|
||||
PublishTrackerCallback CobraConnection::_publishTrackerCallback = nullptr;
|
||||
constexpr size_t CobraConnection::kQueueMaxSize;
|
||||
constexpr CobraConnection::MsgId CobraConnection::kInvalidMsgId;
|
||||
constexpr int CobraConnection::kPingIntervalSecs;
|
||||
|
||||
CobraConnection::CobraConnection() :
|
||||
_webSocket(new WebSocket()),
|
||||
@ -227,6 +229,10 @@ namespace ix
|
||||
ss << "HTTP Status: " << msg->errorInfo.http_status << std::endl;
|
||||
invokeErrorCallback(ss.str(), std::string());
|
||||
}
|
||||
else if (msg->type == ix::WebSocketMessageType::Pong)
|
||||
{
|
||||
invokeEventCallback(ix::CobraConnection_EventType_Pong);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -244,7 +250,8 @@ namespace ix
|
||||
const std::string& endpoint,
|
||||
const std::string& rolename,
|
||||
const std::string& rolesecret,
|
||||
const WebSocketPerMessageDeflateOptions& webSocketPerMessageDeflateOptions)
|
||||
const WebSocketPerMessageDeflateOptions& webSocketPerMessageDeflateOptions,
|
||||
const SocketTLSOptions& socketTLSOptions)
|
||||
{
|
||||
_roleName = rolename;
|
||||
_roleSecret = rolesecret;
|
||||
@ -257,6 +264,16 @@ namespace ix
|
||||
std::string url = ss.str();
|
||||
_webSocket->setUrl(url);
|
||||
_webSocket->setPerMessageDeflateOptions(webSocketPerMessageDeflateOptions);
|
||||
_webSocket->setTLSOptions(socketTLSOptions);
|
||||
|
||||
// Send a websocket ping every N seconds (N = 30) now
|
||||
// This should keep the connection open and prevent some load balancers such as
|
||||
// the Amazon one from shutting it down
|
||||
_webSocket->setPingInterval(kPingIntervalSecs);
|
||||
|
||||
// If we don't receive a pong back, declare loss after 3 * N seconds
|
||||
// (will be 90s now), and close and restart the connection
|
||||
_webSocket->setPingTimeout(3 * kPingIntervalSecs);
|
||||
}
|
||||
|
||||
//
|
||||
@ -497,7 +514,7 @@ namespace ix
|
||||
if (_messageQueue.empty()) return true;
|
||||
|
||||
auto&& msg = _messageQueue.back();
|
||||
if (!publishMessage(msg))
|
||||
if (!_authenticated || !publishMessage(msg))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -20,6 +20,7 @@
|
||||
namespace ix
|
||||
{
|
||||
class WebSocket;
|
||||
struct SocketTLSOptions;
|
||||
|
||||
enum CobraConnectionEventType
|
||||
{
|
||||
@ -29,7 +30,8 @@ namespace ix
|
||||
CobraConnection_EventType_Closed = 3,
|
||||
CobraConnection_EventType_Subscribed = 4,
|
||||
CobraConnection_EventType_UnSubscribed = 5,
|
||||
CobraConnection_EventType_Published = 6
|
||||
CobraConnection_EventType_Published = 6,
|
||||
CobraConnection_EventType_Pong = 7
|
||||
};
|
||||
|
||||
enum CobraConnectionPublishMode
|
||||
@ -62,7 +64,8 @@ namespace ix
|
||||
const std::string& endpoint,
|
||||
const std::string& rolename,
|
||||
const std::string& rolesecret,
|
||||
const WebSocketPerMessageDeflateOptions& webSocketPerMessageDeflateOptions);
|
||||
const WebSocketPerMessageDeflateOptions& webSocketPerMessageDeflateOptions,
|
||||
const SocketTLSOptions& socketTLSOptions);
|
||||
|
||||
/// Set the traffic tracker callback
|
||||
static void setTrafficTrackerCallback(const TrafficTrackerCallback& callback);
|
||||
@ -213,6 +216,9 @@ namespace ix
|
||||
|
||||
// Each pdu sent should have an incremental unique id
|
||||
std::atomic<uint64_t> _id;
|
||||
|
||||
// Frequency at which we send a websocket ping to the backing cobra connection
|
||||
static constexpr int kPingIntervalSecs = 30;
|
||||
};
|
||||
|
||||
} // namespace ix
|
||||
|
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include "IXCobraMetricsPublisher.h"
|
||||
#include <ixwebsocket/IXSocketTLSOptions.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
@ -31,14 +32,15 @@ namespace ix
|
||||
const std::string& channel,
|
||||
const std::string& rolename,
|
||||
const std::string& rolesecret,
|
||||
bool enablePerMessageDeflate)
|
||||
bool enablePerMessageDeflate,
|
||||
const SocketTLSOptions& socketTLSOptions)
|
||||
{
|
||||
// Configure the satori connection and start its publish background thread
|
||||
_cobra_metrics_theaded_publisher.start();
|
||||
|
||||
_cobra_metrics_theaded_publisher.configure(appkey, endpoint, channel,
|
||||
rolename, rolesecret,
|
||||
enablePerMessageDeflate);
|
||||
enablePerMessageDeflate, socketTLSOptions);
|
||||
}
|
||||
|
||||
Json::Value& CobraMetricsPublisher::getGenericAttributes()
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
namespace ix
|
||||
{
|
||||
struct SocketTLSOptions;
|
||||
|
||||
class CobraMetricsPublisher
|
||||
{
|
||||
public:
|
||||
@ -43,7 +45,8 @@ namespace ix
|
||||
const std::string& channel,
|
||||
const std::string& rolename,
|
||||
const std::string& rolesecret,
|
||||
bool enablePerMessageDeflate);
|
||||
bool enablePerMessageDeflate,
|
||||
const SocketTLSOptions& socketTLSOptions);
|
||||
|
||||
/// Setter for the list of blacklisted metrics ids.
|
||||
/// That list is sorted internally for fast lookups
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include "IXCobraMetricsThreadedPublisher.h"
|
||||
#include <ixwebsocket/IXSetThreadName.h>
|
||||
#include <ixwebsocket/IXSocketTLSOptions.h>
|
||||
#include <ixcore/utils/IXCoreLogger.h>
|
||||
|
||||
#include <algorithm>
|
||||
@ -64,6 +65,10 @@ namespace ix
|
||||
{
|
||||
ss << "Published message " << msgId << " acked";
|
||||
}
|
||||
else if (eventType == ix::CobraConnection_EventType_Pong)
|
||||
{
|
||||
ss << "Received websocket pong";
|
||||
}
|
||||
|
||||
ix::IXCoreLogger::Log(ss.str().c_str());
|
||||
});
|
||||
@ -92,14 +97,17 @@ namespace ix
|
||||
const std::string& channel,
|
||||
const std::string& rolename,
|
||||
const std::string& rolesecret,
|
||||
bool enablePerMessageDeflate)
|
||||
bool enablePerMessageDeflate,
|
||||
const SocketTLSOptions& socketTLSOptions)
|
||||
{
|
||||
_channel = channel;
|
||||
|
||||
ix::IXCoreLogger::Log(socketTLSOptions.getDescription().c_str());
|
||||
|
||||
ix::WebSocketPerMessageDeflateOptions webSocketPerMessageDeflateOptions(enablePerMessageDeflate);
|
||||
_cobra_connection.configure(appkey, endpoint,
|
||||
rolename, rolesecret,
|
||||
webSocketPerMessageDeflateOptions);
|
||||
webSocketPerMessageDeflateOptions, socketTLSOptions);
|
||||
}
|
||||
|
||||
void CobraMetricsThreadedPublisher::pushMessage(MessageKind messageKind)
|
||||
|
@ -18,6 +18,8 @@
|
||||
|
||||
namespace ix
|
||||
{
|
||||
struct SocketTLSOptions;
|
||||
|
||||
class CobraMetricsThreadedPublisher
|
||||
{
|
||||
public:
|
||||
@ -30,7 +32,8 @@ namespace ix
|
||||
const std::string& channel,
|
||||
const std::string& rolename,
|
||||
const std::string& rolesecret,
|
||||
bool enablePerMessageDeflate);
|
||||
bool enablePerMessageDeflate,
|
||||
const SocketTLSOptions& socketTLSOptions);
|
||||
|
||||
/// Start the worker thread, used for background publishing
|
||||
void start();
|
||||
|
@ -166,6 +166,17 @@ namespace ix
|
||||
tags.append(tag);
|
||||
}
|
||||
}
|
||||
|
||||
if (msg["data"]["info"].isMember("level_str"))
|
||||
{
|
||||
// https://docs.sentry.io/enriching-error-data/context/?platform=python#setting-the-level
|
||||
std::string level = msg["data"]["info"]["level_str"].asString();
|
||||
if (level == "critical")
|
||||
{
|
||||
level = "fatal";
|
||||
}
|
||||
payload["level"] = level;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -182,7 +193,6 @@ namespace ix
|
||||
|
||||
Json::Value extra;
|
||||
extra["cobra_event"] = msg;
|
||||
extra["cobra_event"] = msg;
|
||||
|
||||
// Builtin tags
|
||||
Json::Value gameTag;
|
||||
@ -200,6 +210,11 @@ namespace ix
|
||||
environmentTag.append(msg["device"]["environment"]);
|
||||
tags.append(environmentTag);
|
||||
|
||||
Json::Value clientVersionTag;
|
||||
clientVersionTag.append("client_version");
|
||||
clientVersionTag.append(msg["device"]["app_version"]);
|
||||
tags.append(clientVersionTag);
|
||||
|
||||
payload["tags"] = tags;
|
||||
|
||||
return _jsonWriter.write(payload);
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <ixwebsocket/IXSocketTLSOptions.h>
|
||||
|
||||
namespace snake
|
||||
{
|
||||
@ -26,8 +27,12 @@ namespace snake
|
||||
// AppKeys
|
||||
nlohmann::json apps;
|
||||
|
||||
// TLS options
|
||||
ix::SocketTLSOptions socketTLSOptions;
|
||||
|
||||
// Misc
|
||||
bool verbose;
|
||||
bool disablePong;
|
||||
};
|
||||
|
||||
bool isAppKeyValid(const AppConfig& appConfig, std::string appkey);
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
namespace ix
|
||||
{
|
||||
RedisServer::RedisServer(int port, const std::string& host, int backlog, size_t maxConnections)
|
||||
: SocketServer(port, host, backlog, maxConnections)
|
||||
RedisServer::RedisServer(int port, const std::string& host, int backlog, size_t maxConnections, int addressFamily)
|
||||
: SocketServer(port, host, backlog, maxConnections, addressFamily)
|
||||
, _connectedClientsCount(0)
|
||||
, _stopHandlingConnections(false)
|
||||
{
|
||||
|
@ -25,7 +25,8 @@ namespace ix
|
||||
RedisServer(int port = SocketServer::kDefaultPort,
|
||||
const std::string& host = SocketServer::kDefaultHost,
|
||||
int backlog = SocketServer::kDefaultTcpBacklog,
|
||||
size_t maxConnections = SocketServer::kDefaultMaxConnections);
|
||||
size_t maxConnections = SocketServer::kDefaultMaxConnections,
|
||||
int addressFamily = SocketServer::kDefaultAddressFamily);
|
||||
virtual ~RedisServer();
|
||||
virtual void stop() final;
|
||||
|
||||
|
@ -20,7 +20,16 @@ namespace snake
|
||||
: _appConfig(appConfig)
|
||||
, _server(appConfig.port, appConfig.hostname)
|
||||
{
|
||||
;
|
||||
_server.setTLSOptions(appConfig.socketTLSOptions);
|
||||
|
||||
if (appConfig.disablePong)
|
||||
{
|
||||
_server.disablePong();
|
||||
}
|
||||
|
||||
std::stringstream ss;
|
||||
ss << "Listening on " << appConfig.hostname << ":" << appConfig.port;
|
||||
ix::IXCoreLogger::Log(ss.str().c_str());
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -648,7 +648,7 @@ namespace ix
|
||||
<< it.second << "\r\n";
|
||||
}
|
||||
|
||||
ss << "--" << multipartBoundary << "\r\n";
|
||||
ss << "--" << multipartBoundary << "--\r\n";
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include "IXSocketConnect.h"
|
||||
#include "IXUserAgent.h"
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
|
||||
@ -43,8 +42,9 @@ namespace
|
||||
|
||||
namespace ix
|
||||
{
|
||||
HttpServer::HttpServer(int port, const std::string& host, int backlog, size_t maxConnections)
|
||||
: SocketServer(port, host, backlog, maxConnections)
|
||||
HttpServer::HttpServer(
|
||||
int port, const std::string& host, int backlog, size_t maxConnections, int addressFamily)
|
||||
: SocketServer(port, host, backlog, maxConnections, addressFamily)
|
||||
, _connectedClientsCount(0)
|
||||
{
|
||||
setDefaultConnectionCallback();
|
||||
|
@ -28,7 +28,8 @@ namespace ix
|
||||
HttpServer(int port = SocketServer::kDefaultPort,
|
||||
const std::string& host = SocketServer::kDefaultHost,
|
||||
int backlog = SocketServer::kDefaultTcpBacklog,
|
||||
size_t maxConnections = SocketServer::kDefaultMaxConnections);
|
||||
size_t maxConnections = SocketServer::kDefaultMaxConnections,
|
||||
int addressFamily = SocketServer::kDefaultAddressFamily);
|
||||
virtual ~HttpServer();
|
||||
virtual void stop() final;
|
||||
|
||||
|
@ -7,9 +7,9 @@
|
||||
#include "IXSelectInterruptFactory.h"
|
||||
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#include <ixwebsocket/IXSelectInterruptPipe.h>
|
||||
#include "IXSelectInterruptPipe.h"
|
||||
#else
|
||||
#include <ixwebsocket/IXSelectInterrupt.h>
|
||||
#include "IXSelectInterrupt.h"
|
||||
#endif
|
||||
|
||||
namespace ix
|
||||
|
@ -54,14 +54,17 @@ namespace ix
|
||||
// to ::poll does fix that.
|
||||
//
|
||||
// However poll isn't as portable as select and has bugs on Windows, so we
|
||||
// should write a shim to fallback to select on those platforms. See
|
||||
// have a shim to fallback to select on those platforms. See
|
||||
// https://github.com/mpv-player/mpv/pull/5203/files for such a select wrapper.
|
||||
//
|
||||
nfds_t nfds = 1;
|
||||
struct pollfd fds[2];
|
||||
memset(fds, 0, sizeof(fds));
|
||||
|
||||
fds[0].fd = sockfd;
|
||||
fds[0].events = (readyToRead) ? POLLIN : POLLOUT;
|
||||
|
||||
// this is ignored by poll, but our select based poll wrapper on Windows needs it
|
||||
fds[0].events |= POLLERR;
|
||||
|
||||
// File descriptor used to interrupt select when needed
|
||||
@ -132,6 +135,11 @@ namespace ix
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else if (sockfd != -1 && (fds[0].revents & POLLERR || fds[0].revents & POLLHUP ||
|
||||
fds[0].revents & POLLNVAL))
|
||||
{
|
||||
pollResult = PollResultType::Error;
|
||||
}
|
||||
|
||||
return pollResult;
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ namespace ix
|
||||
virtual void close();
|
||||
|
||||
virtual ssize_t send(char* buffer, size_t length);
|
||||
virtual ssize_t send(const std::string& buffer);
|
||||
ssize_t send(const std::string& buffer);
|
||||
virtual ssize_t recv(void* buffer, size_t length);
|
||||
|
||||
// Blocking and cancellable versions, working with socket that can be set
|
||||
|
@ -24,9 +24,47 @@
|
||||
|
||||
#include <Security/SecureTransport.h>
|
||||
|
||||
namespace
|
||||
namespace ix
|
||||
{
|
||||
OSStatus read_from_socket(SSLConnectionRef connection, void* data, size_t* len)
|
||||
SocketAppleSSL::SocketAppleSSL(const SocketTLSOptions& tlsOptions, int fd)
|
||||
: Socket(fd)
|
||||
, _sslContext(nullptr)
|
||||
, _tlsOptions(tlsOptions)
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
SocketAppleSSL::~SocketAppleSSL()
|
||||
{
|
||||
SocketAppleSSL::close();
|
||||
}
|
||||
|
||||
std::string SocketAppleSSL::getSSLErrorDescription(OSStatus status)
|
||||
{
|
||||
std::string errMsg("Unknown SSL error.");
|
||||
|
||||
CFErrorRef error = CFErrorCreate(kCFAllocatorDefault, kCFErrorDomainOSStatus, status, NULL);
|
||||
if (error)
|
||||
{
|
||||
CFStringRef message = CFErrorCopyDescription(error);
|
||||
if (message)
|
||||
{
|
||||
char localBuffer[128];
|
||||
Boolean success;
|
||||
success = CFStringGetCString(message, localBuffer, 128, kCFStringEncodingUTF8);
|
||||
if (success)
|
||||
{
|
||||
errMsg = localBuffer;
|
||||
}
|
||||
CFRelease(message);
|
||||
}
|
||||
CFRelease(error);
|
||||
}
|
||||
|
||||
return errMsg;
|
||||
}
|
||||
|
||||
OSStatus SocketAppleSSL::readFromSocket(SSLConnectionRef connection, void* data, size_t* len)
|
||||
{
|
||||
int fd = (int) (long) connection;
|
||||
if (fd < 0) return errSSLInternal;
|
||||
@ -42,11 +80,15 @@ namespace
|
||||
{
|
||||
*len = (size_t) status;
|
||||
if (requested_sz > *len)
|
||||
{
|
||||
return errSSLWouldBlock;
|
||||
}
|
||||
else
|
||||
{
|
||||
return noErr;
|
||||
}
|
||||
}
|
||||
else if (0 == status)
|
||||
else if (status == 0)
|
||||
{
|
||||
*len = 0;
|
||||
return errSSLClosedGraceful;
|
||||
@ -58,7 +100,8 @@ namespace
|
||||
{
|
||||
case ENOENT: return errSSLClosedGraceful;
|
||||
|
||||
case EAGAIN: return errSSLWouldBlock;
|
||||
case EAGAIN: return errSSLWouldBlock; // EWOULDBLOCK is a define for EAGAIN on osx
|
||||
case EINPROGRESS: return errSSLWouldBlock;
|
||||
|
||||
case ECONNRESET: return errSSLClosedAbort;
|
||||
|
||||
@ -67,7 +110,9 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
OSStatus write_to_socket(SSLConnectionRef connection, const void* data, size_t* len)
|
||||
OSStatus SocketAppleSSL::writeToSocket(SSLConnectionRef connection,
|
||||
const void* data,
|
||||
size_t* len)
|
||||
{
|
||||
int fd = (int) (long) connection;
|
||||
if (fd < 0) return errSSLInternal;
|
||||
@ -82,11 +127,15 @@ namespace
|
||||
{
|
||||
*len = (size_t) status;
|
||||
if (to_write_sz > *len)
|
||||
{
|
||||
return errSSLWouldBlock;
|
||||
}
|
||||
else
|
||||
{
|
||||
return noErr;
|
||||
}
|
||||
}
|
||||
else if (0 == status)
|
||||
else if (status == 0)
|
||||
{
|
||||
*len = 0;
|
||||
return errSSLClosedGraceful;
|
||||
@ -94,58 +143,25 @@ namespace
|
||||
else
|
||||
{
|
||||
*len = 0;
|
||||
if (EAGAIN == errno)
|
||||
switch (errno)
|
||||
{
|
||||
return errSSLWouldBlock;
|
||||
}
|
||||
else
|
||||
{
|
||||
return errSecIO;
|
||||
case ENOENT: return errSSLClosedGraceful;
|
||||
|
||||
case EAGAIN: return errSSLWouldBlock; // EWOULDBLOCK is a define for EAGAIN on osx
|
||||
case EINPROGRESS: return errSSLWouldBlock;
|
||||
|
||||
case ECONNRESET: return errSSLClosedAbort;
|
||||
|
||||
default: return errSecIO;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string getSSLErrorDescription(OSStatus status)
|
||||
|
||||
bool SocketAppleSSL::accept(std::string& errMsg)
|
||||
{
|
||||
std::string errMsg("Unknown SSL error.");
|
||||
|
||||
CFErrorRef error = CFErrorCreate(kCFAllocatorDefault, kCFErrorDomainOSStatus, status, NULL);
|
||||
if (error)
|
||||
{
|
||||
CFStringRef message = CFErrorCopyDescription(error);
|
||||
if (message)
|
||||
{
|
||||
char localBuffer[128];
|
||||
Boolean success;
|
||||
success =
|
||||
CFStringGetCString(message, localBuffer, 128, kCFStringEncodingUTF8);
|
||||
if (success)
|
||||
{
|
||||
errMsg = localBuffer;
|
||||
}
|
||||
CFRelease(message);
|
||||
}
|
||||
CFRelease(error);
|
||||
}
|
||||
|
||||
return errMsg;
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
namespace ix
|
||||
{
|
||||
SocketAppleSSL::SocketAppleSSL(const SocketTLSOptions& tlsOptions, int fd)
|
||||
: Socket(fd)
|
||||
, _sslContext(nullptr)
|
||||
, _tlsOptions(tlsOptions)
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
SocketAppleSSL::~SocketAppleSSL()
|
||||
{
|
||||
SocketAppleSSL::close();
|
||||
errMsg = "TLS not supported yet in server mode with apple ssl backend";
|
||||
return false;
|
||||
}
|
||||
|
||||
// No wait support
|
||||
@ -163,7 +179,8 @@ namespace ix
|
||||
|
||||
_sslContext = SSLCreateContext(kCFAllocatorDefault, kSSLClientSide, kSSLStreamType);
|
||||
|
||||
SSLSetIOFuncs(_sslContext, read_from_socket, write_to_socket);
|
||||
SSLSetIOFuncs(
|
||||
_sslContext, SocketAppleSSL::readFromSocket, SocketAppleSSL::writeToSocket);
|
||||
SSLSetConnection(_sslContext, (SSLConnectionRef)(long) _sockfd);
|
||||
SSLSetProtocolVersionMin(_sslContext, kTLSProtocol12);
|
||||
SSLSetPeerDomainName(_sslContext, host.c_str(), host.size());
|
||||
@ -176,7 +193,7 @@ namespace ix
|
||||
do
|
||||
{
|
||||
status = SSLHandshake(_sslContext);
|
||||
} while (errSSLWouldBlock == status || errSSLServerAuthCompleted == status);
|
||||
} while (status == errSSLWouldBlock || status == errSSLServerAuthCompleted);
|
||||
|
||||
if (status == errSSLServerAuthCompleted)
|
||||
{
|
||||
@ -184,7 +201,7 @@ namespace ix
|
||||
do
|
||||
{
|
||||
status = SSLHandshake(_sslContext);
|
||||
} while (errSSLWouldBlock == status || errSSLServerAuthCompleted == status);
|
||||
} while (status == errSSLWouldBlock || status == errSSLServerAuthCompleted);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -192,11 +209,11 @@ namespace ix
|
||||
do
|
||||
{
|
||||
status = SSLHandshake(_sslContext);
|
||||
} while (errSSLWouldBlock == status || errSSLServerAuthCompleted == status);
|
||||
} while (status == errSSLWouldBlock || status == errSSLServerAuthCompleted);
|
||||
}
|
||||
}
|
||||
|
||||
if (noErr != status)
|
||||
if (status != noErr)
|
||||
{
|
||||
errMsg = getSSLErrorDescription(status);
|
||||
close();
|
||||
@ -221,32 +238,38 @@ namespace ix
|
||||
|
||||
ssize_t SocketAppleSSL::send(char* buf, size_t nbyte)
|
||||
{
|
||||
ssize_t ret = 0;
|
||||
OSStatus status;
|
||||
do
|
||||
OSStatus status = errSSLWouldBlock;
|
||||
while (status == errSSLWouldBlock)
|
||||
{
|
||||
size_t processed = 0;
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
status = SSLWrite(_sslContext, buf, nbyte, &processed);
|
||||
ret += processed;
|
||||
buf += processed;
|
||||
nbyte -= processed;
|
||||
} while (nbyte > 0 && errSSLWouldBlock == status);
|
||||
|
||||
if (ret == 0 && errSSLClosedAbort != status) ret = -1;
|
||||
return ret;
|
||||
}
|
||||
if (processed > 0) return (ssize_t) processed;
|
||||
|
||||
ssize_t SocketAppleSSL::send(const std::string& buffer)
|
||||
{
|
||||
return send((char*) &buffer[0], buffer.size());
|
||||
// The connection was reset, inform the caller that this
|
||||
// Socket should close
|
||||
if (status == errSSLClosedGraceful || status == errSSLClosedNoNotify ||
|
||||
status == errSSLClosedAbort)
|
||||
{
|
||||
errno = ECONNRESET;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (status == errSSLWouldBlock)
|
||||
{
|
||||
errno = EWOULDBLOCK;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
// No wait support
|
||||
ssize_t SocketAppleSSL::recv(void* buf, size_t nbyte)
|
||||
{
|
||||
OSStatus status = errSSLWouldBlock;
|
||||
while (errSSLWouldBlock == status)
|
||||
while (status == errSSLWouldBlock)
|
||||
{
|
||||
size_t processed = 0;
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
|
@ -21,6 +21,8 @@ namespace ix
|
||||
SocketAppleSSL(const SocketTLSOptions& tlsOptions, int fd = -1);
|
||||
~SocketAppleSSL();
|
||||
|
||||
virtual bool accept(std::string& errMsg) final;
|
||||
|
||||
virtual bool connect(const std::string& host,
|
||||
int port,
|
||||
std::string& errMsg,
|
||||
@ -28,10 +30,13 @@ namespace ix
|
||||
virtual void close() final;
|
||||
|
||||
virtual ssize_t send(char* buffer, size_t length) final;
|
||||
virtual ssize_t send(const std::string& buffer) final;
|
||||
virtual ssize_t recv(void* buffer, size_t length) final;
|
||||
|
||||
private:
|
||||
static std::string getSSLErrorDescription(OSStatus status);
|
||||
static OSStatus writeToSocket(SSLConnectionRef connection, const void* data, size_t* len);
|
||||
static OSStatus readFromSocket(SSLConnectionRef connection, void* data, size_t* len);
|
||||
|
||||
SSLContextRef _sslContext;
|
||||
mutable std::mutex _mutex; // AppleSSL routines are not thread-safe
|
||||
|
||||
|
@ -9,18 +9,16 @@
|
||||
#ifdef IXWEBSOCKET_USE_TLS
|
||||
|
||||
#ifdef IXWEBSOCKET_USE_MBED_TLS
|
||||
#include <ixwebsocket/IXSocketMbedTLS.h>
|
||||
#elif defined(_WIN32)
|
||||
#include <ixwebsocket/IXSocketSChannel.h>
|
||||
#include "IXSocketMbedTLS.h"
|
||||
#elif defined(IXWEBSOCKET_USE_OPEN_SSL)
|
||||
#include <ixwebsocket/IXSocketOpenSSL.h>
|
||||
#include "IXSocketOpenSSL.h"
|
||||
#elif __APPLE__
|
||||
#include <ixwebsocket/IXSocketAppleSSL.h>
|
||||
#include "IXSocketAppleSSL.h"
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#include <ixwebsocket/IXSocket.h>
|
||||
#include "IXSocket.h"
|
||||
|
||||
#endif
|
||||
|
||||
@ -46,8 +44,6 @@ namespace ix
|
||||
socket = std::make_shared<SocketMbedTLS>(tlsOptions, fd);
|
||||
#elif defined(IXWEBSOCKET_USE_OPEN_SSL)
|
||||
socket = std::make_shared<SocketOpenSSL>(tlsOptions, fd);
|
||||
#elif defined(_WIN32)
|
||||
socket = std::make_shared<SocketSChannel>(tlsOptions, fd);
|
||||
#elif defined(__APPLE__)
|
||||
socket = std::make_shared<SocketAppleSSL>(tlsOptions, fd);
|
||||
#endif
|
||||
|
@ -38,9 +38,11 @@ namespace ix
|
||||
mbedtls_ctr_drbg_init(&_ctr_drbg);
|
||||
mbedtls_entropy_init(&_entropy);
|
||||
mbedtls_x509_crt_init(&_cacert);
|
||||
mbedtls_x509_crt_init(&_cert);
|
||||
mbedtls_pk_init(&_pkey);
|
||||
}
|
||||
|
||||
bool SocketMbedTLS::init(const std::string& host, std::string& errMsg)
|
||||
bool SocketMbedTLS::init(const std::string& host, bool isClient, std::string& errMsg)
|
||||
{
|
||||
initMBedTLS();
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
@ -58,7 +60,7 @@ namespace ix
|
||||
}
|
||||
|
||||
if (mbedtls_ssl_config_defaults(&_conf,
|
||||
MBEDTLS_SSL_IS_CLIENT,
|
||||
(isClient) ? MBEDTLS_SSL_IS_CLIENT : MBEDTLS_SSL_IS_SERVER,
|
||||
MBEDTLS_SSL_TRANSPORT_STREAM,
|
||||
MBEDTLS_SSL_PRESET_DEFAULT) != 0)
|
||||
{
|
||||
@ -68,13 +70,32 @@ namespace ix
|
||||
|
||||
mbedtls_ssl_conf_rng(&_conf, mbedtls_ctr_drbg_random, &_ctr_drbg);
|
||||
|
||||
if (_tlsOptions.hasCertAndKey())
|
||||
{
|
||||
if (mbedtls_x509_crt_parse_file(&_cert, _tlsOptions.certFile.c_str()) < 0)
|
||||
{
|
||||
errMsg = "Cannot parse cert file '" + _tlsOptions.certFile + "'";
|
||||
return false;
|
||||
}
|
||||
if (mbedtls_pk_parse_keyfile(&_pkey, _tlsOptions.keyFile.c_str(), "") < 0)
|
||||
{
|
||||
errMsg = "Cannot parse key file '" + _tlsOptions.keyFile + "'";
|
||||
return false;
|
||||
}
|
||||
if (mbedtls_ssl_conf_own_cert(&_conf, &_cert, &_pkey) < 0)
|
||||
{
|
||||
errMsg = "Problem configuring cert '" + _tlsOptions.certFile + "'";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (_tlsOptions.isPeerVerifyDisabled())
|
||||
{
|
||||
mbedtls_ssl_conf_authmode(&_conf, MBEDTLS_SSL_VERIFY_NONE);
|
||||
}
|
||||
else
|
||||
{
|
||||
mbedtls_ssl_conf_ca_chain(&_conf, &_cacert, NULL);
|
||||
mbedtls_ssl_conf_authmode(&_conf, MBEDTLS_SSL_VERIFY_REQUIRED);
|
||||
|
||||
// FIXME: should we call mbedtls_ssl_conf_verify ?
|
||||
|
||||
@ -87,7 +108,8 @@ namespace ix
|
||||
errMsg = "Cannot parse CA file '" + _tlsOptions.caFile + "'";
|
||||
return false;
|
||||
}
|
||||
mbedtls_ssl_conf_authmode(&_conf, MBEDTLS_SSL_VERIFY_REQUIRED);
|
||||
|
||||
mbedtls_ssl_conf_ca_chain(&_conf, &_cacert, NULL);
|
||||
}
|
||||
|
||||
if (mbedtls_ssl_setup(&_ssl, &_conf) != 0)
|
||||
@ -96,7 +118,7 @@ namespace ix
|
||||
return false;
|
||||
}
|
||||
|
||||
if (mbedtls_ssl_set_hostname(&_ssl, host.c_str()) != 0)
|
||||
if (!host.empty() && mbedtls_ssl_set_hostname(&_ssl, host.c_str()) != 0)
|
||||
{
|
||||
errMsg = "SNI setup failed";
|
||||
return false;
|
||||
@ -105,6 +127,50 @@ namespace ix
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SocketMbedTLS::accept(std::string& errMsg)
|
||||
{
|
||||
bool isClient = false;
|
||||
bool initialized = init(std::string(), isClient, errMsg);
|
||||
if (!initialized)
|
||||
{
|
||||
close();
|
||||
return false;
|
||||
}
|
||||
|
||||
mbedtls_ssl_set_bio(&_ssl, &_sockfd, mbedtls_net_send, mbedtls_net_recv, NULL);
|
||||
|
||||
int res;
|
||||
do
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
res = mbedtls_ssl_handshake(&_ssl);
|
||||
} while (res == MBEDTLS_ERR_SSL_WANT_READ || res == MBEDTLS_ERR_SSL_WANT_WRITE);
|
||||
|
||||
if (res != 0)
|
||||
{
|
||||
char buf[256];
|
||||
mbedtls_strerror(res, buf, sizeof(buf));
|
||||
|
||||
errMsg = "error in handshake : ";
|
||||
errMsg += buf;
|
||||
|
||||
if (res == MBEDTLS_ERR_X509_CERT_VERIFY_FAILED)
|
||||
{
|
||||
char verifyBuf[512];
|
||||
uint32_t flags = mbedtls_ssl_get_verify_result(&_ssl);
|
||||
|
||||
mbedtls_x509_crt_verify_info(verifyBuf, sizeof(verifyBuf), " ! ", flags);
|
||||
errMsg += " : ";
|
||||
errMsg += verifyBuf;
|
||||
}
|
||||
|
||||
close();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SocketMbedTLS::connect(const std::string& host,
|
||||
int port,
|
||||
std::string& errMsg,
|
||||
@ -116,7 +182,8 @@ namespace ix
|
||||
if (_sockfd == -1) return false;
|
||||
}
|
||||
|
||||
bool initialized = init(host, errMsg);
|
||||
bool isClient = true;
|
||||
bool initialized = init(host, isClient, errMsg);
|
||||
if (!initialized)
|
||||
{
|
||||
close();
|
||||
@ -156,41 +223,30 @@ namespace ix
|
||||
mbedtls_ctr_drbg_free(&_ctr_drbg);
|
||||
mbedtls_entropy_free(&_entropy);
|
||||
mbedtls_x509_crt_free(&_cacert);
|
||||
mbedtls_x509_crt_free(&_cert);
|
||||
|
||||
Socket::close();
|
||||
}
|
||||
|
||||
ssize_t SocketMbedTLS::send(char* buf, size_t nbyte)
|
||||
{
|
||||
ssize_t sent = 0;
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
|
||||
while (nbyte > 0)
|
||||
ssize_t res = mbedtls_ssl_write(&_ssl, (unsigned char*) buf, nbyte);
|
||||
|
||||
if (res > 0)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
|
||||
ssize_t res = mbedtls_ssl_write(&_ssl, (unsigned char*) buf, nbyte);
|
||||
|
||||
if (res > 0)
|
||||
{
|
||||
nbyte -= res;
|
||||
sent += res;
|
||||
}
|
||||
else if (res == MBEDTLS_ERR_SSL_WANT_READ || res == MBEDTLS_ERR_SSL_WANT_WRITE)
|
||||
{
|
||||
errno = EWOULDBLOCK;
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
else if (res == MBEDTLS_ERR_SSL_WANT_READ || res == MBEDTLS_ERR_SSL_WANT_WRITE)
|
||||
{
|
||||
errno = EWOULDBLOCK;
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return sent;
|
||||
}
|
||||
|
||||
ssize_t SocketMbedTLS::send(const std::string& buffer)
|
||||
{
|
||||
return send((char*) &buffer[0], buffer.size());
|
||||
}
|
||||
|
||||
ssize_t SocketMbedTLS::recv(void* buf, size_t nbyte)
|
||||
|
@ -26,6 +26,8 @@ namespace ix
|
||||
SocketMbedTLS(const SocketTLSOptions& tlsOptions, int fd = -1);
|
||||
~SocketMbedTLS();
|
||||
|
||||
virtual bool accept(std::string& errMsg) final;
|
||||
|
||||
virtual bool connect(const std::string& host,
|
||||
int port,
|
||||
std::string& errMsg,
|
||||
@ -33,7 +35,6 @@ namespace ix
|
||||
virtual void close() final;
|
||||
|
||||
virtual ssize_t send(char* buffer, size_t length) final;
|
||||
virtual ssize_t send(const std::string& buffer) final;
|
||||
virtual ssize_t recv(void* buffer, size_t length) final;
|
||||
|
||||
private:
|
||||
@ -42,11 +43,13 @@ namespace ix
|
||||
mbedtls_entropy_context _entropy;
|
||||
mbedtls_ctr_drbg_context _ctr_drbg;
|
||||
mbedtls_x509_crt _cacert;
|
||||
mbedtls_x509_crt _cert;
|
||||
mbedtls_pk_context _pkey;
|
||||
|
||||
std::mutex _mutex;
|
||||
SocketTLSOptions _tlsOptions;
|
||||
|
||||
bool init(const std::string& host, std::string& errMsg);
|
||||
bool init(const std::string& host, bool isClient, std::string& errMsg);
|
||||
void initMBedTLS();
|
||||
};
|
||||
|
||||
|
@ -11,8 +11,14 @@
|
||||
#include "IXSocketConnect.h"
|
||||
#include <cassert>
|
||||
#include <errno.h>
|
||||
#ifdef _WIN32
|
||||
#include <Shlwapi.h>
|
||||
#else
|
||||
#include <fnmatch.h>
|
||||
#endif
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
#include <openssl/x509v3.h>
|
||||
#endif
|
||||
#define socketerrno errno
|
||||
|
||||
namespace ix
|
||||
@ -136,7 +142,11 @@ namespace ix
|
||||
*/
|
||||
bool SocketOpenSSL::checkHost(const std::string& host, const char* pattern)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return PathMatchSpecA(host.c_str(), pattern);
|
||||
#else
|
||||
return fnmatch(pattern, host.c_str(), 0) != FNM_NOMATCH;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool SocketOpenSSL::openSSLCheckServerCert(SSL* ssl,
|
||||
@ -593,42 +603,30 @@ namespace ix
|
||||
|
||||
ssize_t SocketOpenSSL::send(char* buf, size_t nbyte)
|
||||
{
|
||||
ssize_t sent = 0;
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
|
||||
while (nbyte > 0)
|
||||
if (_ssl_connection == nullptr || _ssl_context == nullptr)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
|
||||
if (_ssl_connection == nullptr || _ssl_context == nullptr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
ERR_clear_error();
|
||||
ssize_t write_result = SSL_write(_ssl_connection, buf + sent, (int) nbyte);
|
||||
int reason = SSL_get_error(_ssl_connection, (int) write_result);
|
||||
|
||||
if (reason == SSL_ERROR_NONE)
|
||||
{
|
||||
nbyte -= write_result;
|
||||
sent += write_result;
|
||||
}
|
||||
else if (reason == SSL_ERROR_WANT_READ || reason == SSL_ERROR_WANT_WRITE)
|
||||
{
|
||||
errno = EWOULDBLOCK;
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
return sent;
|
||||
}
|
||||
|
||||
ssize_t SocketOpenSSL::send(const std::string& buffer)
|
||||
{
|
||||
return send((char*) &buffer[0], buffer.size());
|
||||
ERR_clear_error();
|
||||
ssize_t write_result = SSL_write(_ssl_connection, buf, (int) nbyte);
|
||||
int reason = SSL_get_error(_ssl_connection, (int) write_result);
|
||||
|
||||
if (reason == SSL_ERROR_NONE)
|
||||
{
|
||||
return write_result;
|
||||
}
|
||||
else if (reason == SSL_ERROR_WANT_READ || reason == SSL_ERROR_WANT_WRITE)
|
||||
{
|
||||
errno = EWOULDBLOCK;
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
ssize_t SocketOpenSSL::recv(void* buf, size_t nbyte)
|
||||
|
@ -33,7 +33,6 @@ namespace ix
|
||||
virtual void close() final;
|
||||
|
||||
virtual ssize_t send(char* buffer, size_t length) final;
|
||||
virtual ssize_t send(const std::string& buffer) final;
|
||||
virtual ssize_t recv(void* buffer, size_t length) final;
|
||||
|
||||
private:
|
||||
|
@ -1,103 +0,0 @@
|
||||
/*
|
||||
* IXSocketSChannel.cpp
|
||||
* Author: Benjamin Sergeant
|
||||
* Copyright (c) 2018 Machine Zone, Inc. All rights reserved.
|
||||
*
|
||||
* See https://docs.microsoft.com/en-us/windows/desktop/WinSock/using-secure-socket-extensions
|
||||
*
|
||||
* https://github.com/pauldotknopf/WindowsSDK7-Samples/blob/master/netds/winsock/securesocket/stcpclient/tcpclient.c
|
||||
*
|
||||
* This is the right example to look at:
|
||||
* https://www.codeproject.com/Articles/1000189/A-Working-TCP-Client-and-Server-With-SSL
|
||||
*
|
||||
* Similar code is available from this git repo
|
||||
* https://github.com/david-maw/StreamSSL
|
||||
*/
|
||||
#include "IXSocketSChannel.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <WS2tcpip.h>
|
||||
#include <WinSock2.h>
|
||||
#include <basetsd.h>
|
||||
#include <io.h>
|
||||
#include <schannel.h>
|
||||
#include <ws2def.h>
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#ifndef UNICODE
|
||||
#define UNICODE
|
||||
#endif
|
||||
|
||||
#include <mstcpip.h>
|
||||
#include <ntdsapi.h>
|
||||
#include <rpc.h>
|
||||
#include <stdio.h>
|
||||
#include <tchar.h>
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#define RECV_DATA_BUF_SIZE 256
|
||||
|
||||
// Link with ws2_32.lib
|
||||
#pragma comment(lib, "Ws2_32.lib")
|
||||
|
||||
// link with fwpuclnt.lib for Winsock secure socket extensions
|
||||
#pragma comment(lib, "fwpuclnt.lib")
|
||||
|
||||
// link with ntdsapi.lib for DsMakeSpn function
|
||||
#pragma comment(lib, "ntdsapi.lib")
|
||||
|
||||
// The following function assumes that Winsock
|
||||
// has already been initialized
|
||||
|
||||
|
||||
#else
|
||||
#error("This file should only be built on Windows")
|
||||
#endif
|
||||
|
||||
namespace ix
|
||||
{
|
||||
SocketSChannel::SocketSChannel()
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
SocketSChannel::~SocketSChannel()
|
||||
{
|
||||
}
|
||||
|
||||
bool SocketSChannel::connect(const std::string& host, int port, std::string& errMsg)
|
||||
{
|
||||
return Socket::connect(host, port, errMsg, nullptr);
|
||||
}
|
||||
|
||||
|
||||
void SocketSChannel::secureSocket()
|
||||
{
|
||||
// there will be a lot to do here ...
|
||||
}
|
||||
|
||||
void SocketSChannel::close()
|
||||
{
|
||||
Socket::close();
|
||||
}
|
||||
|
||||
ssize_t SocketSChannel::send(char* buf, size_t nbyte)
|
||||
{
|
||||
return Socket::send(buf, nbyte);
|
||||
}
|
||||
|
||||
ssize_t SocketSChannel::send(const std::string& buffer)
|
||||
{
|
||||
return Socket::send(buffer);
|
||||
}
|
||||
|
||||
ssize_t SocketSChannel::recv(void* buf, size_t nbyte)
|
||||
{
|
||||
return Socket::recv(buf, nbyte);
|
||||
}
|
||||
|
||||
} // namespace ix
|
@ -1,32 +0,0 @@
|
||||
/*
|
||||
* IXSocketSChannel.h
|
||||
* Author: Benjamin Sergeant
|
||||
* Copyright (c) 2017-2018 Machine Zone, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "IXSocket.h"
|
||||
|
||||
namespace ix
|
||||
{
|
||||
class SocketSChannel final : public Socket
|
||||
{
|
||||
public:
|
||||
SocketSChannel();
|
||||
~SocketSChannel();
|
||||
|
||||
virtual bool connect(const std::string& host, int port, std::string& errMsg) final;
|
||||
virtual void close() final;
|
||||
|
||||
// The important override
|
||||
virtual void secureSocket() final;
|
||||
|
||||
virtual ssize_t send(char* buffer, size_t length) final;
|
||||
virtual ssize_t send(const std::string& buffer) final;
|
||||
virtual ssize_t recv(void* buffer, size_t length) final;
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
} // namespace ix
|
@ -7,12 +7,13 @@
|
||||
#include "IXSocketServer.h"
|
||||
|
||||
#include "IXNetSystem.h"
|
||||
#include "IXSetThreadName.h"
|
||||
#include "IXSocket.h"
|
||||
#include "IXSocketConnect.h"
|
||||
#include "IXSocketFactory.h"
|
||||
#include <assert.h>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
namespace ix
|
||||
@ -21,15 +22,15 @@ namespace ix
|
||||
const std::string SocketServer::kDefaultHost("127.0.0.1");
|
||||
const int SocketServer::kDefaultTcpBacklog(5);
|
||||
const size_t SocketServer::kDefaultMaxConnections(32);
|
||||
const int SocketServer::kDefaultAddressFamily(AF_INET);
|
||||
|
||||
SocketServer::SocketServer(int port,
|
||||
const std::string& host,
|
||||
int backlog,
|
||||
size_t maxConnections)
|
||||
SocketServer::SocketServer(
|
||||
int port, const std::string& host, int backlog, size_t maxConnections, int addressFamily)
|
||||
: _port(port)
|
||||
, _host(host)
|
||||
, _backlog(backlog)
|
||||
, _maxConnections(maxConnections)
|
||||
, _addressFamily(addressFamily)
|
||||
, _serverFd(-1)
|
||||
, _stop(false)
|
||||
, _stopGc(false)
|
||||
@ -45,21 +46,26 @@ namespace ix
|
||||
void SocketServer::logError(const std::string& str)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_logMutex);
|
||||
std::cerr << str << std::endl;
|
||||
fprintf(stderr, "%s\n", str.c_str());
|
||||
}
|
||||
|
||||
void SocketServer::logInfo(const std::string& str)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_logMutex);
|
||||
std::cout << str << std::endl;
|
||||
fprintf(stdout, "%s\n", str.c_str());
|
||||
}
|
||||
|
||||
std::pair<bool, std::string> SocketServer::listen()
|
||||
{
|
||||
struct sockaddr_in server; // server address information
|
||||
if (_addressFamily != AF_INET && _addressFamily != AF_INET6)
|
||||
{
|
||||
std::string errMsg("SocketServer::listen() AF_INET and AF_INET6 are currently "
|
||||
"the only supported address families");
|
||||
return std::make_pair(false, errMsg);
|
||||
}
|
||||
|
||||
// Get a socket for accepting connections.
|
||||
if ((_serverFd = socket(AF_INET, SOCK_STREAM, 0)) < 0)
|
||||
if ((_serverFd = socket(_addressFamily, SOCK_STREAM, 0)) < 0)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "SocketServer::listen() error creating socket): " << strerror(Socket::getErrno());
|
||||
@ -79,27 +85,63 @@ namespace ix
|
||||
return std::make_pair(false, ss.str());
|
||||
}
|
||||
|
||||
// Bind the socket to the server address.
|
||||
server.sin_family = AF_INET;
|
||||
server.sin_port = htons(_port);
|
||||
|
||||
// Using INADDR_ANY trigger a pop-up box as binding to any address is detected
|
||||
// by the osx firewall. We need to codesign the binary with a self-signed cert
|
||||
// to allow that, but this is a bit of a pain. (this is what node or python would do).
|
||||
//
|
||||
// Using INADDR_LOOPBACK also does not work ... while it should.
|
||||
// We default to 127.0.0.1 (localhost)
|
||||
//
|
||||
server.sin_addr.s_addr = inet_addr(_host.c_str());
|
||||
|
||||
if (bind(_serverFd, (struct sockaddr*) &server, sizeof(server)) < 0)
|
||||
if (_addressFamily == AF_INET)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "SocketServer::listen() error calling bind "
|
||||
<< "at address " << _host << ":" << _port << " : " << strerror(Socket::getErrno());
|
||||
struct sockaddr_in server;
|
||||
server.sin_family = _addressFamily;
|
||||
server.sin_port = htons(_port);
|
||||
|
||||
Socket::closeSocket(_serverFd);
|
||||
return std::make_pair(false, ss.str());
|
||||
if (inet_pton(_addressFamily, _host.c_str(), &server.sin_addr.s_addr) <= 0)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "SocketServer::listen() error calling inet_pton "
|
||||
<< "at address " << _host << ":" << _port << " : "
|
||||
<< strerror(Socket::getErrno());
|
||||
|
||||
Socket::closeSocket(_serverFd);
|
||||
return std::make_pair(false, ss.str());
|
||||
}
|
||||
|
||||
// Bind the socket to the server address.
|
||||
if (bind(_serverFd, (struct sockaddr*) &server, sizeof(server)) < 0)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "SocketServer::listen() error calling bind "
|
||||
<< "at address " << _host << ":" << _port << " : "
|
||||
<< strerror(Socket::getErrno());
|
||||
|
||||
Socket::closeSocket(_serverFd);
|
||||
return std::make_pair(false, ss.str());
|
||||
}
|
||||
}
|
||||
else // AF_INET6
|
||||
{
|
||||
struct sockaddr_in6 server;
|
||||
server.sin6_family = _addressFamily;
|
||||
server.sin6_port = htons(_port);
|
||||
|
||||
if (inet_pton(_addressFamily, _host.c_str(), &server.sin6_addr) <= 0)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "SocketServer::listen() error calling inet_pton "
|
||||
<< "at address " << _host << ":" << _port << " : "
|
||||
<< strerror(Socket::getErrno());
|
||||
|
||||
Socket::closeSocket(_serverFd);
|
||||
return std::make_pair(false, ss.str());
|
||||
}
|
||||
|
||||
// Bind the socket to the server address.
|
||||
if (bind(_serverFd, (struct sockaddr*) &server, sizeof(server)) < 0)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "SocketServer::listen() error calling bind "
|
||||
<< "at address " << _host << ":" << _port << " : "
|
||||
<< strerror(Socket::getErrno());
|
||||
|
||||
Socket::closeSocket(_serverFd);
|
||||
return std::make_pair(false, ss.str());
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
@ -206,6 +248,8 @@ namespace ix
|
||||
// Set the socket to non blocking mode, so that accept calls are not blocking
|
||||
SocketConnect::configure(_serverFd);
|
||||
|
||||
setThreadName("SocketServer::listen");
|
||||
|
||||
for (;;)
|
||||
{
|
||||
if (_stop) return;
|
||||
@ -306,6 +350,8 @@ namespace ix
|
||||
|
||||
void SocketServer::runGC()
|
||||
{
|
||||
setThreadName("SocketServer::GC");
|
||||
|
||||
for (;;)
|
||||
{
|
||||
// Garbage collection to shutdown/join threads for closed connections.
|
||||
|
@ -36,7 +36,8 @@ namespace ix
|
||||
SocketServer(int port = SocketServer::kDefaultPort,
|
||||
const std::string& host = SocketServer::kDefaultHost,
|
||||
int backlog = SocketServer::kDefaultTcpBacklog,
|
||||
size_t maxConnections = SocketServer::kDefaultMaxConnections);
|
||||
size_t maxConnections = SocketServer::kDefaultMaxConnections,
|
||||
int addressFamily = SocketServer::kDefaultAddressFamily);
|
||||
virtual ~SocketServer();
|
||||
virtual void stop();
|
||||
|
||||
@ -49,6 +50,7 @@ namespace ix
|
||||
const static std::string kDefaultHost;
|
||||
const static int kDefaultTcpBacklog;
|
||||
const static size_t kDefaultMaxConnections;
|
||||
const static int kDefaultAddressFamily;
|
||||
|
||||
void start();
|
||||
std::pair<bool, std::string> listen();
|
||||
@ -69,6 +71,7 @@ namespace ix
|
||||
std::string _host;
|
||||
int _backlog;
|
||||
size_t _maxConnections;
|
||||
int _addressFamily;
|
||||
|
||||
// socket for accepting connections
|
||||
int _serverFd;
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
namespace ix
|
||||
{
|
||||
@ -71,4 +72,16 @@ namespace ix
|
||||
{
|
||||
return _errMsg;
|
||||
}
|
||||
|
||||
std::string SocketTLSOptions::getDescription() const
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "TLS Options:" << std::endl;
|
||||
ss << " certFile = " << certFile << std::endl;
|
||||
ss << " keyFile = " << keyFile << std::endl;
|
||||
ss << " caFile = " << caFile << std::endl;
|
||||
ss << " ciphers = " << ciphers << std::endl;
|
||||
ss << " ciphers = " << ciphers << std::endl;
|
||||
return ss.str();
|
||||
}
|
||||
} // namespace ix
|
||||
|
@ -43,8 +43,10 @@ namespace ix
|
||||
|
||||
const std::string& getErrorMsg() const;
|
||||
|
||||
std::string getDescription() const;
|
||||
|
||||
private:
|
||||
mutable std::string _errMsg;
|
||||
mutable bool _validated;
|
||||
mutable bool _validated = false;
|
||||
};
|
||||
} // namespace ix
|
||||
|
@ -134,6 +134,13 @@ namespace ix
|
||||
_enablePong = false;
|
||||
}
|
||||
|
||||
void WebSocket::enablePerMessageDeflate()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_configMutex);
|
||||
WebSocketPerMessageDeflateOptions perMessageDeflateOptions(true);
|
||||
_perMessageDeflateOptions = perMessageDeflateOptions;
|
||||
}
|
||||
|
||||
void WebSocket::disablePerMessageDeflate()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_configMutex);
|
||||
@ -169,6 +176,7 @@ namespace ix
|
||||
// wait until working thread will exit
|
||||
// it will exit after close operation is finished
|
||||
_stop = true;
|
||||
_sleepCondition.notify_one();
|
||||
_thread.join();
|
||||
_stop = false;
|
||||
}
|
||||
@ -190,9 +198,19 @@ namespace ix
|
||||
auto subProtocols = getSubProtocols();
|
||||
if (!subProtocols.empty())
|
||||
{
|
||||
//
|
||||
// Sub Protocol strings are comma separated.
|
||||
// Python code to do that is:
|
||||
// >>> ','.join(['json', 'msgpack'])
|
||||
// 'json,msgpack'
|
||||
//
|
||||
int i = 0;
|
||||
for (auto subProtocol : subProtocols)
|
||||
{
|
||||
subProtocolsHeader += ",";
|
||||
if (i++ != 0)
|
||||
{
|
||||
subProtocolsHeader += ",";
|
||||
}
|
||||
subProtocolsHeader += subProtocol;
|
||||
}
|
||||
headers["Sec-WebSocket-Protocol"] = subProtocolsHeader;
|
||||
@ -282,8 +300,13 @@ namespace ix
|
||||
// Only sleep if we are retrying
|
||||
if (duration.count() > 0)
|
||||
{
|
||||
// to do: make sleeping conditional
|
||||
std::this_thread::sleep_for(duration);
|
||||
std::unique_lock<std::mutex> lock(_sleepMutex);
|
||||
_sleepCondition.wait_for(lock, duration);
|
||||
}
|
||||
|
||||
if (_stop)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
// Try to connect synchronously
|
||||
@ -389,7 +412,7 @@ namespace ix
|
||||
WebSocketCloseInfo(),
|
||||
binary));
|
||||
|
||||
WebSocket::invokeTrafficTrackerCallback(msg.size(), true);
|
||||
WebSocket::invokeTrafficTrackerCallback(wireSize, true);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "IXWebSocketSendInfo.h"
|
||||
#include "IXWebSocketTransport.h"
|
||||
#include <atomic>
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
@ -56,6 +57,7 @@ namespace ix
|
||||
void setPingTimeout(int pingTimeoutSecs);
|
||||
void enablePong();
|
||||
void disablePong();
|
||||
void enablePerMessageDeflate();
|
||||
void disablePerMessageDeflate();
|
||||
void addSubProtocol(const std::string& subProtocol);
|
||||
|
||||
@ -70,7 +72,7 @@ namespace ix
|
||||
WebSocketInitResult connect(int timeoutSecs);
|
||||
void run();
|
||||
|
||||
// send is in binary mode by default
|
||||
// send is in text mode by default
|
||||
WebSocketSendInfo send(const std::string& data,
|
||||
bool binary = false,
|
||||
const OnProgressCallback& onProgressCallback = nullptr);
|
||||
@ -140,6 +142,10 @@ namespace ix
|
||||
static const uint32_t kDefaultMaxWaitBetweenReconnectionRetries;
|
||||
uint32_t _maxWaitBetweenReconnectionRetries;
|
||||
|
||||
// Make the sleeping in the automatic reconnection cancellable
|
||||
std::mutex _sleepMutex;
|
||||
std::condition_variable _sleepCondition;
|
||||
|
||||
std::atomic<int> _handshakeTimeoutSecs;
|
||||
static const int kDefaultHandShakeTimeoutSecs;
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include "IXUserAgent.h"
|
||||
#include "libwshandshake.hpp"
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <random>
|
||||
#include <sstream>
|
||||
|
||||
@ -335,7 +336,7 @@ namespace ix
|
||||
std::string header = headers["sec-websocket-extensions"];
|
||||
WebSocketPerMessageDeflateOptions webSocketPerMessageDeflateOptions(header);
|
||||
|
||||
// If the client has requested that extension, enable it.
|
||||
// If the client has requested that extension,
|
||||
if (webSocketPerMessageDeflateOptions.enabled())
|
||||
{
|
||||
_enablePerMessageDeflate = true;
|
||||
|
@ -66,12 +66,23 @@ namespace ix
|
||||
{
|
||||
line[i] = '\0';
|
||||
std::string lineStr(line);
|
||||
// colon is ':', colon+1 is ' ', colon+2 is the start of the value.
|
||||
// colon is ':', usually colon+1 is ' ', and colon+2 is the start of the value.
|
||||
// some webservers do not put a space after the colon character, so
|
||||
// the start of the value might be farther than colon+2.
|
||||
// The spec says that space after the : should be discarded.
|
||||
// i is end of string (\0), i-colon is length of string minus key;
|
||||
// subtract 1 for '\0', 1 for '\n', 1 for '\r',
|
||||
// 1 for the ' ' after the ':', and total is -4
|
||||
// since we use an std::string later on and don't account for '\0',
|
||||
// plus the optional first space, total is -2
|
||||
int start = colon + 1;
|
||||
while (lineStr[start] == ' ')
|
||||
{
|
||||
start++;
|
||||
}
|
||||
|
||||
std::string name(lineStr.substr(0, colon));
|
||||
std::string value(lineStr.substr(colon + 2, i - colon - 4));
|
||||
std::string value(lineStr.substr(start, lineStr.size() - start - 2));
|
||||
|
||||
headers[name] = value;
|
||||
}
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "IXWebSocketServer.h"
|
||||
|
||||
#include "IXNetSystem.h"
|
||||
#include "IXSetThreadName.h"
|
||||
#include "IXSocketConnect.h"
|
||||
#include "IXWebSocket.h"
|
||||
#include "IXWebSocketTransport.h"
|
||||
@ -23,10 +24,12 @@ namespace ix
|
||||
const std::string& host,
|
||||
int backlog,
|
||||
size_t maxConnections,
|
||||
int handshakeTimeoutSecs)
|
||||
: SocketServer(port, host, backlog, maxConnections)
|
||||
int handshakeTimeoutSecs,
|
||||
int addressFamily)
|
||||
: SocketServer(port, host, backlog, maxConnections, addressFamily)
|
||||
, _handshakeTimeoutSecs(handshakeTimeoutSecs)
|
||||
, _enablePong(kDefaultEnablePong)
|
||||
, _enablePerMessageDeflate(true)
|
||||
{
|
||||
}
|
||||
|
||||
@ -58,6 +61,11 @@ namespace ix
|
||||
_enablePong = false;
|
||||
}
|
||||
|
||||
void WebSocketServer::disablePerMessageDeflate()
|
||||
{
|
||||
_enablePerMessageDeflate = false;
|
||||
}
|
||||
|
||||
void WebSocketServer::setOnConnectionCallback(const OnConnectionCallback& callback)
|
||||
{
|
||||
_onConnectionCallback = callback;
|
||||
@ -66,15 +74,21 @@ namespace ix
|
||||
void WebSocketServer::handleConnection(std::shared_ptr<Socket> socket,
|
||||
std::shared_ptr<ConnectionState> connectionState)
|
||||
{
|
||||
setThreadName("WebSocketServer::" + connectionState->getId());
|
||||
|
||||
auto webSocket = std::make_shared<WebSocket>();
|
||||
_onConnectionCallback(webSocket, connectionState);
|
||||
|
||||
webSocket->disableAutomaticReconnection();
|
||||
|
||||
if (_enablePong)
|
||||
{
|
||||
webSocket->enablePong();
|
||||
}
|
||||
else
|
||||
{
|
||||
webSocket->disablePong();
|
||||
}
|
||||
|
||||
// Add this client to our client set
|
||||
{
|
||||
@ -106,7 +120,6 @@ namespace ix
|
||||
}
|
||||
}
|
||||
|
||||
logInfo("WebSocketServer::handleConnection() done");
|
||||
connectionState->setTerminated();
|
||||
}
|
||||
|
||||
|
@ -29,29 +29,33 @@ namespace ix
|
||||
const std::string& host = SocketServer::kDefaultHost,
|
||||
int backlog = SocketServer::kDefaultTcpBacklog,
|
||||
size_t maxConnections = SocketServer::kDefaultMaxConnections,
|
||||
int handshakeTimeoutSecs = WebSocketServer::kDefaultHandShakeTimeoutSecs);
|
||||
int handshakeTimeoutSecs = WebSocketServer::kDefaultHandShakeTimeoutSecs,
|
||||
int addressFamily = SocketServer::kDefaultAddressFamily);
|
||||
virtual ~WebSocketServer();
|
||||
virtual void stop() final;
|
||||
|
||||
void enablePong();
|
||||
void disablePong();
|
||||
void disablePerMessageDeflate();
|
||||
|
||||
void setOnConnectionCallback(const OnConnectionCallback& callback);
|
||||
|
||||
// Get all the connected clients
|
||||
std::set<std::shared_ptr<WebSocket>> getClients();
|
||||
|
||||
const static int kDefaultHandShakeTimeoutSecs;
|
||||
|
||||
private:
|
||||
// Member variables
|
||||
int _handshakeTimeoutSecs;
|
||||
bool _enablePong;
|
||||
bool _enablePerMessageDeflate;
|
||||
|
||||
OnConnectionCallback _onConnectionCallback;
|
||||
|
||||
std::mutex _clientsMutex;
|
||||
std::set<std::shared_ptr<WebSocket>> _clients;
|
||||
|
||||
const static int kDefaultHandShakeTimeoutSecs;
|
||||
const static bool kDefaultEnablePong;
|
||||
|
||||
// Methods
|
||||
|
@ -144,7 +144,9 @@ namespace ix
|
||||
|
||||
if (!UrlParser::parse(url, protocol, host, path, query, port))
|
||||
{
|
||||
return WebSocketInitResult(false, 0, std::string("Could not parse URL ") + url);
|
||||
std::stringstream ss;
|
||||
ss << "Could not parse url: '" << url << "'";
|
||||
return WebSocketInitResult(false, 0, ss.str());
|
||||
}
|
||||
|
||||
std::string errorMsg;
|
||||
@ -348,28 +350,9 @@ namespace ix
|
||||
}
|
||||
else if (pollResult == PollResultType::ReadyForRead)
|
||||
{
|
||||
while (true)
|
||||
if (!receiveFromSocket())
|
||||
{
|
||||
ssize_t ret = _socket->recv((char*) &_readbuf[0], _readbuf.size());
|
||||
|
||||
if (ret < 0 && Socket::isWaitNeeded())
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if (ret <= 0)
|
||||
{
|
||||
// if there are received data pending to be processed, then delay the abnormal
|
||||
// closure to after dispatch (other close code/reason could be read from the
|
||||
// buffer)
|
||||
|
||||
closeSocket();
|
||||
|
||||
return PollResult::AbnormalClose;
|
||||
}
|
||||
else
|
||||
{
|
||||
_rxbuf.insert(_rxbuf.end(), _readbuf.begin(), _readbuf.begin() + ret);
|
||||
}
|
||||
return PollResult::AbnormalClose;
|
||||
}
|
||||
}
|
||||
else if (pollResult == PollResultType::Error)
|
||||
@ -737,7 +720,7 @@ namespace ix
|
||||
|
||||
// if an abnormal closure was raised in poll, and nothing else triggered a CLOSED state in
|
||||
// the received and processed data then close the connection
|
||||
if (pollResult == PollResult::AbnormalClose)
|
||||
if (pollResult != PollResult::Succeeded)
|
||||
{
|
||||
_rxbuf.clear();
|
||||
|
||||
@ -863,10 +846,12 @@ namespace ix
|
||||
_txbuf.reserve(wireSize);
|
||||
}
|
||||
|
||||
bool success = true;
|
||||
|
||||
// Common case for most message. No fragmentation required.
|
||||
if (wireSize < kChunkSize)
|
||||
{
|
||||
sendFragment(type, true, message_begin, message_end, compress);
|
||||
success = sendFragment(type, true, message_begin, message_end, compress);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -902,7 +887,10 @@ namespace ix
|
||||
}
|
||||
|
||||
// Send message
|
||||
sendFragment(opcodeType, fin, begin, end, compress);
|
||||
if (!sendFragment(opcodeType, fin, begin, end, compress))
|
||||
{
|
||||
return WebSocketSendInfo(false);
|
||||
}
|
||||
|
||||
if (onProgressCallback && !onProgressCallback((int) i, (int) steps))
|
||||
{
|
||||
@ -913,8 +901,6 @@ namespace ix
|
||||
}
|
||||
}
|
||||
|
||||
bool success = true;
|
||||
|
||||
// Request to flush the send buffer on the background thread if it isn't empty
|
||||
if (!isSendBufferEmpty())
|
||||
{
|
||||
@ -930,7 +916,7 @@ namespace ix
|
||||
return WebSocketSendInfo(success, compressionError, payloadSize, wireSize);
|
||||
}
|
||||
|
||||
void WebSocketTransport::sendFragment(wsheader_type::opcode_type type,
|
||||
bool WebSocketTransport::sendFragment(wsheader_type::opcode_type type,
|
||||
bool fin,
|
||||
std::string::const_iterator message_begin,
|
||||
std::string::const_iterator message_end,
|
||||
@ -1015,7 +1001,7 @@ namespace ix
|
||||
appendToSendBuffer(header, message_begin, message_end, message_size, masking_key);
|
||||
|
||||
// Now actually send this data
|
||||
sendOnSocket();
|
||||
return sendOnSocket();
|
||||
}
|
||||
|
||||
WebSocketSendInfo WebSocketTransport::sendPing(const std::string& message)
|
||||
@ -1048,19 +1034,17 @@ namespace ix
|
||||
wsheader_type::TEXT_FRAME, message, _enablePerMessageDeflate, onProgressCallback);
|
||||
}
|
||||
|
||||
ssize_t WebSocketTransport::send()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_socketMutex);
|
||||
return _socket->send((char*) &_txbuf[0], _txbuf.size());
|
||||
}
|
||||
|
||||
void WebSocketTransport::sendOnSocket()
|
||||
bool WebSocketTransport::sendOnSocket()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_txbufMutex);
|
||||
|
||||
while (_txbuf.size())
|
||||
{
|
||||
ssize_t ret = send();
|
||||
ssize_t ret = 0;
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_socketMutex);
|
||||
ret = _socket->send((char*) &_txbuf[0], _txbuf.size());
|
||||
}
|
||||
|
||||
if (ret < 0 && Socket::isWaitNeeded())
|
||||
{
|
||||
@ -1070,13 +1054,43 @@ namespace ix
|
||||
{
|
||||
closeSocket();
|
||||
setReadyState(ReadyState::CLOSED);
|
||||
break;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
_txbuf.erase(_txbuf.begin(), _txbuf.begin() + ret);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WebSocketTransport::receiveFromSocket()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
ssize_t ret = _socket->recv((char*) &_readbuf[0], _readbuf.size());
|
||||
|
||||
if (ret < 0 && Socket::isWaitNeeded())
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if (ret <= 0)
|
||||
{
|
||||
// if there are received data pending to be processed, then delay the abnormal
|
||||
// closure to after dispatch (other close code/reason could be read from the
|
||||
// buffer)
|
||||
|
||||
closeSocket();
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
_rxbuf.insert(_rxbuf.end(), _readbuf.begin(), _readbuf.begin() + ret);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void WebSocketTransport::sendCloseFrame(uint16_t code, const std::string& reason)
|
||||
@ -1181,7 +1195,10 @@ namespace ix
|
||||
}
|
||||
else if (result == PollResultType::ReadyForWrite)
|
||||
{
|
||||
sendOnSocket();
|
||||
if (!sendOnSocket())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,6 @@ namespace ix
|
||||
bool remote = false);
|
||||
|
||||
void closeSocket();
|
||||
ssize_t send();
|
||||
|
||||
ReadyState getReadyState() const;
|
||||
void setReadyState(ReadyState readyState);
|
||||
@ -244,13 +243,15 @@ namespace ix
|
||||
bool remote);
|
||||
|
||||
bool flushSendBuffer();
|
||||
void sendOnSocket();
|
||||
bool sendOnSocket();
|
||||
bool receiveFromSocket();
|
||||
|
||||
WebSocketSendInfo sendData(wsheader_type::opcode_type type,
|
||||
const std::string& message,
|
||||
bool compress,
|
||||
const OnProgressCallback& onProgressCallback = nullptr);
|
||||
|
||||
void sendFragment(wsheader_type::opcode_type type,
|
||||
bool sendFragment(wsheader_type::opcode_type type,
|
||||
bool fin,
|
||||
std::string::const_iterator begin,
|
||||
std::string::const_iterator end,
|
||||
|
@ -6,4 +6,4 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define IX_WEBSOCKET_VERSION "7.5.4"
|
||||
#define IX_WEBSOCKET_VERSION "8.1.7"
|
||||
|
3
makefile
3
makefile
@ -49,6 +49,9 @@ BUILD := ${NAME}:build
|
||||
print_version:
|
||||
@echo 'IXWebSocket version =>' ${TAG}
|
||||
|
||||
set_version:
|
||||
sh tools/update_version.sh ${VERSION}
|
||||
|
||||
docker_test:
|
||||
docker build -f docker/Dockerfile.debian -t bsergean/ixwebsocket_test:build .
|
||||
|
||||
|
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for ALL_BUILD
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ALL_BUILD
|
||||
|
||||
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ALL_BUILD:
|
||||
echo ""
|
||||
echo Build\ all\ projects
|
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for ALL_BUILD
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ALL_BUILD
|
||||
|
||||
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ALL_BUILD:
|
||||
echo ""
|
||||
echo Build\ all\ projects
|
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for ALL_BUILD
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ALL_BUILD
|
||||
|
||||
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ALL_BUILD:
|
||||
echo ""
|
||||
echo Build\ all\ projects
|
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for ALL_BUILD
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ALL_BUILD
|
||||
|
||||
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ALL_BUILD:
|
||||
echo ""
|
||||
echo Build\ all\ projects
|
18
sentry-native/CMakeScripts/ReRunCMake.make
Normal file
18
sentry-native/CMakeScripts/ReRunCMake.make
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
|
||||
TARGETS:=
|
||||
empty:=
|
||||
space:= $(empty) $(empty)
|
||||
spaceplus:= $(empty)\ $(empty)
|
||||
|
||||
TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Applications/CMake.app/Contents/share/cmake-3.12/Modules/CMakeASMInformation.cmake))
|
||||
TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Applications/CMake.app/Contents/share/cmake-3.12/Modules/Compiler/AppleClang-ASM.cmake))
|
||||
TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Applications/CMake.app/Contents/share/cmake-3.12/Modules/Compiler/Clang-ASM.cmake))
|
||||
TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Applications/CMake.app/Contents/share/cmake-3.12/Modules/Compiler/Clang.cmake))
|
||||
TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Applications/CMake.app/Contents/share/cmake-3.12/Modules/Platform/Apple-clang.cmake))
|
||||
TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Users/bsergeant/src/foss/IXWebSocket/CMakeFiles/3.12.3/CMakeASMCompiler.cmake))
|
||||
TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Users/bsergeant/src/foss/IXWebSocket/third_party/sentry-native/CMakeLists.txt))
|
||||
TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Users/bsergeant/src/foss/IXWebSocket/third_party/sentry-native/src/CMakeLists.txt))
|
||||
|
||||
/Users/bsergeant/src/foss/IXWebSocket/CMakeFiles/cmake.check_cache: $(TARGETS)
|
||||
/Applications/CMake.app/Contents/bin/cmake -H/Users/bsergeant/src/foss/IXWebSocket -B/Users/bsergeant/src/foss/IXWebSocket
|
139
sentry-native/CMakeScripts/XCODE_DEPEND_HELPER.make
Normal file
139
sentry-native/CMakeScripts/XCODE_DEPEND_HELPER.make
Normal file
@ -0,0 +1,139 @@
|
||||
# DO NOT EDIT
|
||||
# This makefile makes sure all linkable targets are
|
||||
# up-to-date with anything they link to
|
||||
default:
|
||||
echo "Do not invoke directly"
|
||||
|
||||
# Rules to remove targets that are older than anything to which they
|
||||
# link. This forces Xcode to relink the targets from scratch. It
|
||||
# does not seem to check these dependencies itself.
|
||||
PostBuild.example.Debug:
|
||||
PostBuild.sentry.Debug: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/example
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/example:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/example
|
||||
|
||||
|
||||
PostBuild.example_crashpad.Debug:
|
||||
PostBuild.sentry.Debug: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/example_crashpad
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/example_crashpad:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/example_crashpad
|
||||
|
||||
|
||||
PostBuild.sentry.Debug:
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a:
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a
|
||||
|
||||
|
||||
PostBuild.sentry_test_integration.Debug:
|
||||
PostBuild.sentry.Debug: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/sentry_test_integration
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/sentry_test_integration:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/sentry_test_integration
|
||||
|
||||
|
||||
PostBuild.sentry_test_unit.Debug:
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/sentry_test_unit:
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/sentry_test_unit
|
||||
|
||||
|
||||
PostBuild.example.Release:
|
||||
PostBuild.sentry.Release: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/example
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/example:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/example
|
||||
|
||||
|
||||
PostBuild.example_crashpad.Release:
|
||||
PostBuild.sentry.Release: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/example_crashpad
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/example_crashpad:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/example_crashpad
|
||||
|
||||
|
||||
PostBuild.sentry.Release:
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a:
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a
|
||||
|
||||
|
||||
PostBuild.sentry_test_integration.Release:
|
||||
PostBuild.sentry.Release: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/sentry_test_integration
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/sentry_test_integration:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/sentry_test_integration
|
||||
|
||||
|
||||
PostBuild.sentry_test_unit.Release:
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/sentry_test_unit:
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/sentry_test_unit
|
||||
|
||||
|
||||
PostBuild.example.MinSizeRel:
|
||||
PostBuild.sentry.MinSizeRel: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/example
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/example:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/example
|
||||
|
||||
|
||||
PostBuild.example_crashpad.MinSizeRel:
|
||||
PostBuild.sentry.MinSizeRel: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/example_crashpad
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/example_crashpad:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/example_crashpad
|
||||
|
||||
|
||||
PostBuild.sentry.MinSizeRel:
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.a:
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.a
|
||||
|
||||
|
||||
PostBuild.sentry_test_integration.MinSizeRel:
|
||||
PostBuild.sentry.MinSizeRel: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/sentry_test_integration
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/sentry_test_integration:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/sentry_test_integration
|
||||
|
||||
|
||||
PostBuild.sentry_test_unit.MinSizeRel:
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/sentry_test_unit:
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/sentry_test_unit
|
||||
|
||||
|
||||
PostBuild.example.RelWithDebInfo:
|
||||
PostBuild.sentry.RelWithDebInfo: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/example
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/example:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/example
|
||||
|
||||
|
||||
PostBuild.example_crashpad.RelWithDebInfo:
|
||||
PostBuild.sentry.RelWithDebInfo: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/example_crashpad
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/example_crashpad:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/example_crashpad
|
||||
|
||||
|
||||
PostBuild.sentry.RelWithDebInfo:
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.a:
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.a
|
||||
|
||||
|
||||
PostBuild.sentry_test_integration.RelWithDebInfo:
|
||||
PostBuild.sentry.RelWithDebInfo: /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/sentry_test_integration
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/sentry_test_integration:\
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.a
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/sentry_test_integration
|
||||
|
||||
|
||||
PostBuild.sentry_test_unit.RelWithDebInfo:
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/sentry_test_unit:
|
||||
/bin/rm -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/sentry_test_unit
|
||||
|
||||
|
||||
|
||||
|
||||
# For each target create a dummy ruleso the target does not have to exist
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.a:
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.a:
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a:
|
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for ZERO_CHECK
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ZERO_CHECK
|
||||
|
||||
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ZERO_CHECK:
|
||||
echo ""
|
||||
make -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeScripts/ReRunCMake.make
|
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for ZERO_CHECK
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ZERO_CHECK
|
||||
|
||||
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ZERO_CHECK:
|
||||
echo ""
|
||||
make -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeScripts/ReRunCMake.make
|
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for ZERO_CHECK
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ZERO_CHECK
|
||||
|
||||
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ZERO_CHECK:
|
||||
echo ""
|
||||
make -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeScripts/ReRunCMake.make
|
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for ZERO_CHECK
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ZERO_CHECK
|
||||
|
||||
|
||||
/Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeFiles/ZERO_CHECK:
|
||||
echo ""
|
||||
make -f /Users/bsergeant/src/foss/IXWebSocket/sentry-native/CMakeScripts/ReRunCMake.make
|
@ -0,0 +1,9 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for install
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
install_buildpart_0
|
||||
|
||||
|
||||
install_buildpart_0:
|
||||
/Applications/CMake.app/Contents/bin/cmake -DBUILD_TYPE=$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -P cmake_install.cmake
|
@ -0,0 +1,9 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for install
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
install_buildpart_0
|
||||
|
||||
|
||||
install_buildpart_0:
|
||||
/Applications/CMake.app/Contents/bin/cmake -DBUILD_TYPE=$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -P cmake_install.cmake
|
@ -0,0 +1,9 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for install
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
install_buildpart_0
|
||||
|
||||
|
||||
install_buildpart_0:
|
||||
/Applications/CMake.app/Contents/bin/cmake -DBUILD_TYPE=$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -P cmake_install.cmake
|
@ -0,0 +1,9 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for install
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
install_buildpart_0
|
||||
|
||||
|
||||
install_buildpart_0:
|
||||
/Applications/CMake.app/Contents/bin/cmake -DBUILD_TYPE=$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) -P cmake_install.cmake
|
10
sentry-native/CMakeScripts/sentry_postBuildPhase.makeDebug
Normal file
10
sentry-native/CMakeScripts/sentry_postBuildPhase.makeDebug
Normal file
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for sentry
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
sentry_buildpart_0
|
||||
|
||||
|
||||
sentry_buildpart_0:
|
||||
echo "Creating symlinks"
|
||||
/Applications/CMake.app/Contents/bin/cmake -E cmake_symlink_library /Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.dylib /Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.dylib /Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.dylib
|
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for sentry
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
sentry_buildpart_0
|
||||
|
||||
|
||||
sentry_buildpart_0:
|
||||
echo "Creating symlinks"
|
||||
/Applications/CMake.app/Contents/bin/cmake -E cmake_symlink_library /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.dylib /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.dylib /Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.dylib
|
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for sentry
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
sentry_buildpart_0
|
||||
|
||||
|
||||
sentry_buildpart_0:
|
||||
echo "Creating symlinks"
|
||||
/Applications/CMake.app/Contents/bin/cmake -E cmake_symlink_library /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.dylib /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.dylib /Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.dylib
|
10
sentry-native/CMakeScripts/sentry_postBuildPhase.makeRelease
Normal file
10
sentry-native/CMakeScripts/sentry_postBuildPhase.makeRelease
Normal file
@ -0,0 +1,10 @@
|
||||
# Generated by CMake, DO NOT EDIT
|
||||
# Custom rules for sentry
|
||||
.SUFFIXES:
|
||||
all: \
|
||||
sentry_buildpart_0
|
||||
|
||||
|
||||
sentry_buildpart_0:
|
||||
echo "Creating symlinks"
|
||||
/Applications/CMake.app/Contents/bin/cmake -E cmake_symlink_library /Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.dylib /Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.dylib /Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.dylib
|
1944
sentry-native/Sentry-Native.xcodeproj/project.pbxproj
Normal file
1944
sentry-native/Sentry-Native.xcodeproj/project.pbxproj
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildSystemType</key>
|
||||
<string>Original</string>
|
||||
</dict>
|
||||
</plist>
|
84
sentry-native/cmake_install.cmake
Normal file
84
sentry-native/cmake_install.cmake
Normal file
@ -0,0 +1,84 @@
|
||||
# Install script for directory: /Users/bsergeant/src/foss/IXWebSocket/third_party/sentry-native
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "Release")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Is this installation the result of a crosscompile?
|
||||
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
endif()
|
||||
|
||||
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
if("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a")
|
||||
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a" AND
|
||||
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a")
|
||||
execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a")
|
||||
endif()
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ee][Aa][Ss][Ee])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a")
|
||||
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a" AND
|
||||
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a")
|
||||
execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a")
|
||||
endif()
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Mm][Ii][Nn][Ss][Ii][Zz][Ee][Rr][Ee][Ll])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.a")
|
||||
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a" AND
|
||||
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a")
|
||||
execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a")
|
||||
endif()
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.a")
|
||||
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a" AND
|
||||
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a")
|
||||
execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libsentry.a")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES "/Users/bsergeant/src/foss/IXWebSocket/third_party/sentry-native/include/sentry.h")
|
||||
endif()
|
||||
|
||||
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
if("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE FILE FILES "/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a.dSYM")
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ee][Aa][Ss][Ee])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE FILE FILES "/Users/bsergeant/src/foss/IXWebSocket/sentry-native/libsentry.a.dSYM")
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Mm][Ii][Nn][Ss][Ii][Zz][Ee][Rr][Ee][Ll])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE FILE FILES "/Users/bsergeant/src/foss/IXWebSocket/sentry-native/MinSizeRel/libsentry.a.dSYM")
|
||||
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$")
|
||||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE FILE FILES "/Users/bsergeant/src/foss/IXWebSocket/sentry-native/RelWithDebInfo/libsentry.a.dSYM")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_INSTALL_LOCAL_ONLY)
|
||||
# Include the install script for each subdirectory.
|
||||
include("/Users/bsergeant/src/foss/IXWebSocket/sentry-native/src/cmake_install.cmake")
|
||||
|
||||
endif()
|
||||
|
34
sentry-native/src/cmake_install.cmake
Normal file
34
sentry-native/src/cmake_install.cmake
Normal file
@ -0,0 +1,34 @@
|
||||
# Install script for directory: /Users/bsergeant/src/foss/IXWebSocket/third_party/sentry-native/src
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "Release")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Is this installation the result of a crosscompile?
|
||||
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
endif()
|
||||
|
@ -23,6 +23,8 @@ include_directories(
|
||||
../ws
|
||||
)
|
||||
|
||||
add_definitions(-DSPDLOG_COMPILED_LIB=1)
|
||||
|
||||
find_package(JsonCpp)
|
||||
if (NOT JSONCPP_FOUND)
|
||||
include_directories(../third_party/jsoncpp)
|
||||
@ -53,12 +55,12 @@ set (SOURCES
|
||||
IXDNSLookupTest.cpp
|
||||
IXWebSocketSubProtocolTest.cpp
|
||||
IXSentryClientTest.cpp
|
||||
IXWebSocketChatTest.cpp
|
||||
)
|
||||
|
||||
# Some unittest don't work on windows yet
|
||||
if (UNIX)
|
||||
list(APPEND SOURCES
|
||||
IXWebSocketChatTest.cpp
|
||||
IXWebSocketCloseTest.cpp
|
||||
)
|
||||
endif()
|
||||
@ -98,4 +100,6 @@ target_link_libraries(ixwebsocket_unittest ixcrypto)
|
||||
target_link_libraries(ixwebsocket_unittest ixcore)
|
||||
target_link_libraries(ixwebsocket_unittest ixsentry)
|
||||
|
||||
target_link_libraries(ixwebsocket_unittest spdlog)
|
||||
|
||||
install(TARGETS ixwebsocket_unittest DESTINATION bin)
|
||||
|
@ -34,12 +34,10 @@ namespace
|
||||
});
|
||||
}
|
||||
|
||||
class SatoriChat
|
||||
class CobraChat
|
||||
{
|
||||
public:
|
||||
SatoriChat(const std::string& user,
|
||||
const std::string& session,
|
||||
const std::string& endpoint);
|
||||
CobraChat(const std::string& user, const std::string& session, const std::string& endpoint);
|
||||
|
||||
void subscribe(const std::string& channel);
|
||||
void start();
|
||||
@ -72,9 +70,9 @@ namespace
|
||||
std::mutex _logMutex;
|
||||
};
|
||||
|
||||
SatoriChat::SatoriChat(const std::string& user,
|
||||
const std::string& session,
|
||||
const std::string& endpoint)
|
||||
CobraChat::CobraChat(const std::string& user,
|
||||
const std::string& session,
|
||||
const std::string& endpoint)
|
||||
: _user(user)
|
||||
, _session(session)
|
||||
, _endpoint(endpoint)
|
||||
@ -83,34 +81,34 @@ namespace
|
||||
{
|
||||
}
|
||||
|
||||
void SatoriChat::start()
|
||||
void CobraChat::start()
|
||||
{
|
||||
_thread = std::thread(&SatoriChat::run, this);
|
||||
_thread = std::thread(&CobraChat::run, this);
|
||||
}
|
||||
|
||||
void SatoriChat::stop()
|
||||
void CobraChat::stop()
|
||||
{
|
||||
_stop = true;
|
||||
_thread.join();
|
||||
}
|
||||
|
||||
bool SatoriChat::isReady() const
|
||||
bool CobraChat::isReady() const
|
||||
{
|
||||
return _connectedAndSubscribed;
|
||||
}
|
||||
|
||||
size_t SatoriChat::getReceivedMessagesCount() const
|
||||
size_t CobraChat::getReceivedMessagesCount() const
|
||||
{
|
||||
return _receivedQueue.size();
|
||||
}
|
||||
|
||||
bool SatoriChat::hasPendingMessages() const
|
||||
bool CobraChat::hasPendingMessages() const
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(_queue_mutex);
|
||||
return !_publish_queue.empty();
|
||||
}
|
||||
|
||||
Json::Value SatoriChat::popMessage()
|
||||
Json::Value CobraChat::popMessage()
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(_queue_mutex);
|
||||
auto msg = _publish_queue.front();
|
||||
@ -121,7 +119,7 @@ namespace
|
||||
//
|
||||
// Callback to handle received messages, that are printed on the console
|
||||
//
|
||||
void SatoriChat::subscribe(const std::string& channel)
|
||||
void CobraChat::subscribe(const std::string& channel)
|
||||
{
|
||||
std::string filter;
|
||||
_conn.subscribe(channel, filter, [this](const Json::Value& msg) {
|
||||
@ -151,7 +149,7 @@ namespace
|
||||
});
|
||||
}
|
||||
|
||||
void SatoriChat::sendMessage(const std::string& text)
|
||||
void CobraChat::sendMessage(const std::string& text)
|
||||
{
|
||||
Json::Value msg;
|
||||
msg["user"] = _user;
|
||||
@ -166,16 +164,21 @@ namespace
|
||||
// Do satori communication on a background thread, where we can have
|
||||
// something like an event loop that publish, poll and receive data
|
||||
//
|
||||
void SatoriChat::run()
|
||||
void CobraChat::run()
|
||||
{
|
||||
// "chat" conf
|
||||
std::string appkey("FC2F10139A2BAc53BB72D9db967b024f");
|
||||
std::string channel = _session;
|
||||
std::string role = "_sub";
|
||||
std::string secret = "66B1dA3ED5fA074EB5AE84Dd8CE3b5ba";
|
||||
SocketTLSOptions socketTLSOptions;
|
||||
|
||||
_conn.configure(
|
||||
appkey, _endpoint, role, secret, ix::WebSocketPerMessageDeflateOptions(true));
|
||||
_conn.configure(appkey,
|
||||
_endpoint,
|
||||
role,
|
||||
secret,
|
||||
ix::WebSocketPerMessageDeflateOptions(true),
|
||||
socketTLSOptions);
|
||||
_conn.connect();
|
||||
|
||||
_conn.setEventCallback([this, channel](ix::CobraConnectionEventType eventType,
|
||||
@ -280,8 +283,8 @@ TEST_CASE("Cobra_chat", "[cobra_chat]")
|
||||
ss << "ws://localhost:" << port;
|
||||
std::string endpoint = ss.str();
|
||||
|
||||
SatoriChat chatA("jean", session, endpoint);
|
||||
SatoriChat chatB("paul", session, endpoint);
|
||||
CobraChat chatA("jean", session, endpoint);
|
||||
CobraChat chatB("paul", session, endpoint);
|
||||
|
||||
chatA.start();
|
||||
chatB.start();
|
||||
|
@ -62,11 +62,14 @@ namespace
|
||||
gMessageCount = 0;
|
||||
|
||||
ix::CobraConnection conn;
|
||||
SocketTLSOptions socketTLSOptions;
|
||||
|
||||
conn.configure(APPKEY,
|
||||
endpoint,
|
||||
SUBSCRIBER_ROLE,
|
||||
SUBSCRIBER_SECRET,
|
||||
ix::WebSocketPerMessageDeflateOptions(true));
|
||||
ix::WebSocketPerMessageDeflateOptions(true),
|
||||
socketTLSOptions);
|
||||
conn.connect();
|
||||
|
||||
conn.setEventCallback([&conn](ix::CobraConnectionEventType eventType,
|
||||
@ -202,9 +205,15 @@ TEST_CASE("Cobra_Metrics_Publisher", "[cobra]")
|
||||
|
||||
ix::CobraMetricsPublisher cobraMetricsPublisher;
|
||||
|
||||
SocketTLSOptions socketTLSOptions;
|
||||
bool perMessageDeflate = true;
|
||||
cobraMetricsPublisher.configure(
|
||||
APPKEY, endpoint, CHANNEL, PUBLISHER_ROLE, PUBLISHER_SECRET, perMessageDeflate);
|
||||
cobraMetricsPublisher.configure(APPKEY,
|
||||
endpoint,
|
||||
CHANNEL,
|
||||
PUBLISHER_ROLE,
|
||||
PUBLISHER_SECRET,
|
||||
perMessageDeflate,
|
||||
socketTLSOptions);
|
||||
cobraMetricsPublisher.setSession(uuid4());
|
||||
cobraMetricsPublisher.enable(true); // disabled by default, needs to be enabled to be active
|
||||
|
||||
|
@ -59,10 +59,14 @@ TEST_CASE("http server", "[httpd]")
|
||||
|
||||
REQUIRE(response->errorCode == HttpErrorCode::Ok);
|
||||
REQUIRE(response->statusCode == 200);
|
||||
REQUIRE(response->headers["Accept-Encoding"] == "gzip");
|
||||
|
||||
server.stop();
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("http server redirection", "[httpd_redirect]")
|
||||
{
|
||||
SECTION("Connect to a local HTTP server, with redirection enabled")
|
||||
{
|
||||
int port = getFreePort();
|
||||
|
11
test/compatibility/node/echo_server.js
Normal file
11
test/compatibility/node/echo_server.js
Normal file
@ -0,0 +1,11 @@
|
||||
const WebSocket = require('ws');
|
||||
|
||||
const wss = new WebSocket.Server({ port: 8080 });
|
||||
|
||||
wss.on('connection', function connection(ws) {
|
||||
ws.on('message', function incoming(message) {
|
||||
console.log('received: %s', message);
|
||||
});
|
||||
|
||||
ws.send('something');
|
||||
});
|
11
test/compatibility/node/echo_server_permessagedeflate.js
Normal file
11
test/compatibility/node/echo_server_permessagedeflate.js
Normal file
@ -0,0 +1,11 @@
|
||||
const WebSocket = require('ws');
|
||||
|
||||
const wss = new WebSocket.Server({ port: 8080, perMessageDeflate: true });
|
||||
|
||||
wss.on('connection', function connection(ws) {
|
||||
ws.on('message', function incoming(message) {
|
||||
console.log('received: %s', message);
|
||||
});
|
||||
|
||||
ws.send('something');
|
||||
});
|
File diff suppressed because one or more lines are too long
36
test/compatibility/python/websocket-client/ws_send.py
Normal file
36
test/compatibility/python/websocket-client/ws_send.py
Normal file
@ -0,0 +1,36 @@
|
||||
from websocket import *
|
||||
|
||||
import random
|
||||
import string
|
||||
import ssl
|
||||
|
||||
def randomString(stringLength=10):
|
||||
"""Generate a random string of fixed length """
|
||||
letters = string.ascii_lowercase
|
||||
return ''.join(random.choice(letters) for i in range(stringLength))
|
||||
|
||||
st = randomString(32768)
|
||||
|
||||
with open('generated_file', 'w') as f:
|
||||
f.write(st)
|
||||
|
||||
ws = create_connection("wss://echo.websocket.org/",
|
||||
sslopt={"cert_reqs": ssl.CERT_NONE})
|
||||
|
||||
print("Sending")
|
||||
|
||||
frame = ABNF.create_frame(st, ABNF.OPCODE_TEXT, 0)
|
||||
ws.send_frame(frame)
|
||||
cont_frame = ABNF.create_frame(st, ABNF.OPCODE_CONT, 0)
|
||||
ws.send_frame(cont_frame)
|
||||
cont_frame = ABNF.create_frame(st, ABNF.OPCODE_CONT, 1)
|
||||
ws.send_frame(cont_frame)
|
||||
|
||||
print("Sent")
|
||||
print("Receiving...")
|
||||
result = ws.recv()
|
||||
if st+st+st == result:
|
||||
print("Received ")
|
||||
else:
|
||||
print("Error")
|
||||
ws.close()
|
@ -1,8 +1,17 @@
|
||||
FROM python:3.8.0-alpine3.10
|
||||
|
||||
RUN pip install websockets
|
||||
COPY ws_proxy.py /usr/bin
|
||||
RUN chmod +x /usr/bin/ws_proxy.py
|
||||
|
||||
EXPOSE 8765
|
||||
CMD ["python", "/usr/bin/ws_proxy.py"]
|
||||
COPY vendor/protocol.py /usr/local/lib/python3.8/site-packages/websockets/protocol.py
|
||||
|
||||
COPY *.py /usr/bin/
|
||||
COPY entrypoint.sh /usr/bin/
|
||||
RUN chmod +x /usr/bin/*.py
|
||||
|
||||
RUN mkdir /certs
|
||||
COPY *.pem /certs/
|
||||
|
||||
WORKDIR /certs
|
||||
|
||||
EXPOSE 8765 8766
|
||||
CMD ["sh", "/usr/bin/entrypoint.sh"]
|
||||
|
3
test/compatibility/python/websockets/Procfile
Normal file
3
test/compatibility/python/websockets/Procfile
Normal file
@ -0,0 +1,3 @@
|
||||
nginx: nginx -p . -c nginx.conf
|
||||
websocket_server: python echo_server.py
|
||||
send: sleep 1 ; ws send -x --verify_none wss://localhost:8765 /usr/local/bin/ws
|
@ -28,3 +28,819 @@ connected (press CTRL+C to quit)
|
||||
< > Welcome !
|
||||
disconnected (code: 1006)
|
||||
```
|
||||
|
||||
# Server
|
||||
|
||||
```
|
||||
$ honcho start
|
||||
15:29:52 system | nginx.1 started (pid=75372)
|
||||
15:29:52 system | send.1 started (pid=75373)
|
||||
15:29:52 system | websocket_server.1 started (pid=75374)
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.414] [info] ws_send: Connecting to url: wss://localhost:8765
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.415] [info] ws_send: Connecting...
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.436] [info] ws_send: connected
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.436] [info] ws_send: Sending...
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.436] [info] Uri: /
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.436] [info] Headers:
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.436] [info] Connection: upgrade
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.436] [info] Date: Sun, 05 Jan 2020 23:29:53 GMT
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.436] [info] Sec-WebSocket-Accept: 2+7DV7Q0Ib3fxynZwaNTtsAepIk=
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.436] [info] Server: nginx/1.15.9
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.436] [info] Upgrade: websocket
|
||||
15:29:53 send.1 | [2020-01-05 15:29:53.633] [info] load file from disk completed in 197
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.267] [info] ws_send: Step 0 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.269] [info] ws_send: Step 1 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.271] [info] ws_send: Step 2 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.273] [info] ws_send: Step 3 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.275] [info] ws_send: Step 4 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.277] [info] ws_send: Step 5 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.278] [info] ws_send: Step 6 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.280] [info] ws_send: Step 7 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.282] [info] ws_send: Step 8 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.284] [info] ws_send: Step 9 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.286] [info] ws_send: Step 10 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.288] [info] ws_send: Step 11 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.289] [info] ws_send: Step 12 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.291] [info] ws_send: Step 13 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.293] [info] ws_send: Step 14 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.295] [info] ws_send: Step 15 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.297] [info] ws_send: Step 16 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.298] [info] ws_send: Step 17 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.300] [info] ws_send: Step 18 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.302] [info] ws_send: Step 19 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.304] [info] ws_send: Step 20 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.306] [info] ws_send: Step 21 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.308] [info] ws_send: Step 22 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.309] [info] ws_send: Step 23 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.311] [info] ws_send: Step 24 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.313] [info] ws_send: Step 25 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.315] [info] ws_send: Step 26 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.317] [info] ws_send: Step 27 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.319] [info] ws_send: Step 28 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.320] [info] ws_send: Step 29 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.322] [info] ws_send: Step 30 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.324] [info] ws_send: Step 31 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.326] [info] ws_send: Step 32 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.328] [info] ws_send: Step 33 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.329] [info] ws_send: Step 34 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.331] [info] ws_send: Step 35 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.333] [info] ws_send: Step 36 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.335] [info] ws_send: Step 37 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.337] [info] ws_send: Step 38 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.339] [info] ws_send: Step 39 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.340] [info] ws_send: Step 40 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.342] [info] ws_send: Step 41 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.344] [info] ws_send: Step 42 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.346] [info] ws_send: Step 43 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.348] [info] ws_send: Step 44 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.350] [info] ws_send: Step 45 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.351] [info] ws_send: Step 46 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.353] [info] ws_send: Step 47 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.355] [info] ws_send: Step 48 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.357] [info] ws_send: Step 49 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.359] [info] ws_send: Step 50 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.361] [info] ws_send: Step 51 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.362] [info] ws_send: Step 52 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.364] [info] ws_send: Step 53 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.366] [info] ws_send: Step 54 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.368] [info] ws_send: Step 55 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.370] [info] ws_send: Step 56 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.372] [info] ws_send: Step 57 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.373] [info] ws_send: Step 58 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.375] [info] ws_send: Step 59 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.377] [info] ws_send: Step 60 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.379] [info] ws_send: Step 61 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.381] [info] ws_send: Step 62 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.383] [info] ws_send: Step 63 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.384] [info] ws_send: Step 64 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.386] [info] ws_send: Step 65 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.388] [info] ws_send: Step 66 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.390] [info] ws_send: Step 67 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.392] [info] ws_send: Step 68 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.394] [info] ws_send: Step 69 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.395] [info] ws_send: Step 70 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.397] [info] ws_send: Step 71 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.399] [info] ws_send: Step 72 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.401] [info] ws_send: Step 73 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.403] [info] ws_send: Step 74 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.405] [info] ws_send: Step 75 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.407] [info] ws_send: Step 76 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.409] [info] ws_send: Step 77 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.411] [info] ws_send: Step 78 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.412] [info] ws_send: Step 79 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.414] [info] ws_send: Step 80 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.416] [info] ws_send: Step 81 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.418] [info] ws_send: Step 82 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.420] [info] ws_send: Step 83 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.421] [info] ws_send: Step 84 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.423] [info] ws_send: Step 85 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.425] [info] ws_send: Step 86 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.427] [info] ws_send: Step 87 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.429] [info] ws_send: Step 88 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.431] [info] ws_send: Step 89 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.432] [info] ws_send: Step 90 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.434] [info] ws_send: Step 91 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.436] [info] ws_send: Step 92 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.438] [info] ws_send: Step 93 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.440] [info] ws_send: Step 94 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.442] [info] ws_send: Step 95 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.444] [info] ws_send: Step 96 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.445] [info] ws_send: Step 97 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.447] [info] ws_send: Step 98 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.449] [info] ws_send: Step 99 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.451] [info] ws_send: Step 100 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.453] [info] ws_send: Step 101 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.454] [info] ws_send: Step 102 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.456] [info] ws_send: Step 103 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.458] [info] ws_send: Step 104 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.460] [info] ws_send: Step 105 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.462] [info] ws_send: Step 106 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.464] [info] ws_send: Step 107 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.465] [info] ws_send: Step 108 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.467] [info] ws_send: Step 109 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.469] [info] ws_send: Step 110 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.471] [info] ws_send: Step 111 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.473] [info] ws_send: Step 112 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.475] [info] ws_send: Step 113 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.476] [info] ws_send: Step 114 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.478] [info] ws_send: Step 115 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.480] [info] ws_send: Step 116 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.482] [info] ws_send: Step 117 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.484] [info] ws_send: Step 118 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.486] [info] ws_send: Step 119 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.488] [info] ws_send: Step 120 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.489] [info] ws_send: Step 121 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.491] [info] ws_send: Step 122 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.493] [info] ws_send: Step 123 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.495] [info] ws_send: Step 124 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.497] [info] ws_send: Step 125 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.499] [info] ws_send: Step 126 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.500] [info] ws_send: Step 127 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.502] [info] ws_send: Step 128 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.504] [info] ws_send: Step 129 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.506] [info] ws_send: Step 130 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.508] [info] ws_send: Step 131 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.509] [info] ws_send: Step 132 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.511] [info] ws_send: Step 133 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.513] [info] ws_send: Step 134 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.515] [info] ws_send: Step 135 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.517] [info] ws_send: Step 136 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.519] [info] ws_send: Step 137 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.520] [info] ws_send: Step 138 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.522] [info] ws_send: Step 139 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.524] [info] ws_send: Step 140 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.526] [info] ws_send: Step 141 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.528] [info] ws_send: Step 142 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.530] [info] ws_send: Step 143 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.531] [info] ws_send: Step 144 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.533] [info] ws_send: Step 145 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.535] [info] ws_send: Step 146 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.537] [info] ws_send: Step 147 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.539] [info] ws_send: Step 148 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.541] [info] ws_send: Step 149 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.542] [info] ws_send: Step 150 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.544] [info] ws_send: Step 151 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.546] [info] ws_send: Step 152 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.548] [info] ws_send: Step 153 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.550] [info] ws_send: Step 154 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.551] [info] ws_send: Step 155 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.553] [info] ws_send: Step 156 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.555] [info] ws_send: Step 157 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.557] [info] ws_send: Step 158 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.559] [info] ws_send: Step 159 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.561] [info] ws_send: Step 160 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.562] [info] ws_send: Step 161 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.564] [info] ws_send: Step 162 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.566] [info] ws_send: Step 163 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.568] [info] ws_send: Step 164 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.570] [info] ws_send: Step 165 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.571] [info] ws_send: Step 166 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.573] [info] ws_send: Step 167 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.575] [info] ws_send: Step 168 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.577] [info] ws_send: Step 169 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.579] [info] ws_send: Step 170 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.581] [info] ws_send: Step 171 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.582] [info] ws_send: Step 172 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.584] [info] ws_send: Step 173 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.586] [info] ws_send: Step 174 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.588] [info] ws_send: Step 175 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.590] [info] ws_send: Step 176 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.592] [info] ws_send: Step 177 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.593] [info] ws_send: Step 178 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.595] [info] ws_send: Step 179 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.597] [info] ws_send: Step 180 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.599] [info] ws_send: Step 181 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.601] [info] ws_send: Step 182 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.602] [info] ws_send: Step 183 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.604] [info] ws_send: Step 184 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.606] [info] ws_send: Step 185 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.608] [info] ws_send: Step 186 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.610] [info] ws_send: Step 187 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.612] [info] ws_send: Step 188 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.613] [info] ws_send: Step 189 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.615] [info] ws_send: Step 190 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.617] [info] ws_send: Step 191 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.619] [info] ws_send: Step 192 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.621] [info] ws_send: Step 193 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.622] [info] ws_send: Step 194 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.624] [info] ws_send: Step 195 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.626] [info] ws_send: Step 196 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.628] [info] ws_send: Step 197 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.630] [info] ws_send: Step 198 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.632] [info] ws_send: Step 199 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.633] [info] ws_send: Step 200 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.635] [info] ws_send: Step 201 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.637] [info] ws_send: Step 202 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.639] [info] ws_send: Step 203 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.641] [info] ws_send: Step 204 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.642] [info] ws_send: Step 205 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.644] [info] ws_send: Step 206 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.646] [info] ws_send: Step 207 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.648] [info] ws_send: Step 208 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.650] [info] ws_send: Step 209 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.652] [info] ws_send: Step 210 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.653] [info] ws_send: Step 211 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.655] [info] ws_send: Step 212 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.657] [info] ws_send: Step 213 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.659] [info] ws_send: Step 214 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.661] [info] ws_send: Step 215 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.663] [info] ws_send: Step 216 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.664] [info] ws_send: Step 217 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.666] [info] ws_send: Step 218 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.668] [info] ws_send: Step 219 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.670] [info] ws_send: Step 220 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.672] [info] ws_send: Step 221 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.674] [info] ws_send: Step 222 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.675] [info] ws_send: Step 223 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.677] [info] ws_send: Step 224 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.679] [info] ws_send: Step 225 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.681] [info] ws_send: Step 226 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.683] [info] ws_send: Step 227 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.685] [info] ws_send: Step 228 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.686] [info] ws_send: Step 229 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.688] [info] ws_send: Step 230 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.690] [info] ws_send: Step 231 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.692] [info] ws_send: Step 232 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.694] [info] ws_send: Step 233 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.695] [info] ws_send: Step 234 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.697] [info] ws_send: Step 235 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.699] [info] ws_send: Step 236 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.701] [info] ws_send: Step 237 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.703] [info] ws_send: Step 238 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.705] [info] ws_send: Step 239 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.707] [info] ws_send: Step 240 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.708] [info] ws_send: Step 241 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.710] [info] ws_send: Step 242 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.712] [info] ws_send: Step 243 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.714] [info] ws_send: Step 244 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.716] [info] ws_send: Step 245 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.718] [info] ws_send: Step 246 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.719] [info] ws_send: Step 247 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.721] [info] ws_send: Step 248 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.723] [info] ws_send: Step 249 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.725] [info] ws_send: Step 250 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.727] [info] ws_send: Step 251 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.729] [info] ws_send: Step 252 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.730] [info] ws_send: Step 253 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.732] [info] ws_send: Step 254 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.734] [info] ws_send: Step 255 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.736] [info] ws_send: Step 256 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.738] [info] ws_send: Step 257 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.740] [info] ws_send: Step 258 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.742] [info] ws_send: Step 259 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.743] [info] ws_send: Step 260 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.745] [info] ws_send: Step 261 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.747] [info] ws_send: Step 262 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.749] [info] ws_send: Step 263 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.751] [info] ws_send: Step 264 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.752] [info] ws_send: Step 265 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.754] [info] ws_send: Step 266 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.756] [info] ws_send: Step 267 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.758] [info] ws_send: Step 268 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.760] [info] ws_send: Step 269 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.762] [info] ws_send: Step 270 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.763] [info] ws_send: Step 271 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.765] [info] ws_send: Step 272 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.767] [info] ws_send: Step 273 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.769] [info] ws_send: Step 274 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.771] [info] ws_send: Step 275 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.772] [info] ws_send: Step 276 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.774] [info] ws_send: Step 277 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.776] [info] ws_send: Step 278 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.778] [info] ws_send: Step 279 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.780] [info] ws_send: Step 280 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.782] [info] ws_send: Step 281 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.783] [info] ws_send: Step 282 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.785] [info] ws_send: Step 283 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.787] [info] ws_send: Step 284 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.789] [info] ws_send: Step 285 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.791] [info] ws_send: Step 286 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.793] [info] ws_send: Step 287 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.794] [info] ws_send: Step 288 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.796] [info] ws_send: Step 289 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.798] [info] ws_send: Step 290 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.800] [info] ws_send: Step 291 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.802] [info] ws_send: Step 292 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.804] [info] ws_send: Step 293 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.805] [info] ws_send: Step 294 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.807] [info] ws_send: Step 295 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.809] [info] ws_send: Step 296 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.811] [info] ws_send: Step 297 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.813] [info] ws_send: Step 298 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.814] [info] ws_send: Step 299 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.816] [info] ws_send: Step 300 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.818] [info] ws_send: Step 301 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.820] [info] ws_send: Step 302 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.822] [info] ws_send: Step 303 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.824] [info] ws_send: Step 304 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.825] [info] ws_send: Step 305 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.827] [info] ws_send: Step 306 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.829] [info] ws_send: Step 307 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.831] [info] ws_send: Step 308 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.833] [info] ws_send: Step 309 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.835] [info] ws_send: Step 310 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.836] [info] ws_send: Step 311 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.838] [info] ws_send: Step 312 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.840] [info] ws_send: Step 313 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.842] [info] ws_send: Step 314 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.844] [info] ws_send: Step 315 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.845] [info] ws_send: Step 316 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.847] [info] ws_send: Step 317 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.849] [info] ws_send: Step 318 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.851] [info] ws_send: Step 319 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.853] [info] ws_send: Step 320 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.855] [info] ws_send: Step 321 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.856] [info] ws_send: Step 322 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.858] [info] ws_send: Step 323 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.860] [info] ws_send: Step 324 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.862] [info] ws_send: Step 325 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.864] [info] ws_send: Step 326 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.866] [info] ws_send: Step 327 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.867] [info] ws_send: Step 328 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.869] [info] ws_send: Step 329 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.871] [info] ws_send: Step 330 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.873] [info] ws_send: Step 331 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.875] [info] ws_send: Step 332 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.876] [info] ws_send: Step 333 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.878] [info] ws_send: Step 334 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.880] [info] ws_send: Step 335 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.882] [info] ws_send: Step 336 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.884] [info] ws_send: Step 337 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.886] [info] ws_send: Step 338 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.888] [info] ws_send: Step 339 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.889] [info] ws_send: Step 340 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.891] [info] ws_send: Step 341 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.893] [info] ws_send: Step 342 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.895] [info] ws_send: Step 343 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.897] [info] ws_send: Step 344 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.899] [info] ws_send: Step 345 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.900] [info] ws_send: Step 346 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.902] [info] ws_send: Step 347 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.904] [info] ws_send: Step 348 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.906] [info] ws_send: Step 349 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.908] [info] ws_send: Step 350 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.910] [info] ws_send: Step 351 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.911] [info] ws_send: Step 352 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.913] [info] ws_send: Step 353 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.915] [info] ws_send: Step 354 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.917] [info] ws_send: Step 355 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.919] [info] ws_send: Step 356 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.920] [info] ws_send: Step 357 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.922] [info] ws_send: Step 358 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.924] [info] ws_send: Step 359 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.926] [info] ws_send: Step 360 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.928] [info] ws_send: Step 361 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.930] [info] ws_send: Step 362 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.932] [info] ws_send: Step 363 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.933] [info] ws_send: Step 364 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.935] [info] ws_send: Step 365 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.937] [info] ws_send: Step 366 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.939] [info] ws_send: Step 367 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.941] [info] ws_send: Step 368 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.943] [info] ws_send: Step 369 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.944] [info] ws_send: Step 370 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.946] [info] ws_send: Step 371 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.948] [info] ws_send: Step 372 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.950] [info] ws_send: Step 373 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.952] [info] ws_send: Step 374 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.954] [info] ws_send: Step 375 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.955] [info] ws_send: Step 376 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.957] [info] ws_send: Step 377 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.959] [info] ws_send: Step 378 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.961] [info] ws_send: Step 379 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.963] [info] ws_send: Step 380 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.965] [info] ws_send: Step 381 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.966] [info] ws_send: Step 382 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.968] [info] ws_send: Step 383 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.970] [info] ws_send: Step 384 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.972] [info] ws_send: Step 385 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.974] [info] ws_send: Step 386 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.976] [info] ws_send: Step 387 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.977] [info] ws_send: Step 388 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.979] [info] ws_send: Step 389 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.981] [info] ws_send: Step 390 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.983] [info] ws_send: Step 391 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.985] [info] ws_send: Step 392 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.986] [info] ws_send: Step 393 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.988] [info] ws_send: Step 394 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.990] [info] ws_send: Step 395 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.992] [info] ws_send: Step 396 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.994] [info] ws_send: Step 397 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.996] [info] ws_send: Step 398 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.997] [info] ws_send: Step 399 out of 768
|
||||
15:29:54 send.1 | [2020-01-05 15:29:54.999] [info] ws_send: Step 400 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.001] [info] ws_send: Step 401 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.003] [info] ws_send: Step 402 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.005] [info] ws_send: Step 403 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.007] [info] ws_send: Step 404 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.009] [info] ws_send: Step 405 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.010] [info] ws_send: Step 406 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.012] [info] ws_send: Step 407 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.014] [info] ws_send: Step 408 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.016] [info] ws_send: Step 409 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.018] [info] ws_send: Step 410 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.020] [info] ws_send: Step 411 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.021] [info] ws_send: Step 412 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.023] [info] ws_send: Step 413 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.025] [info] ws_send: Step 414 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.027] [info] ws_send: Step 415 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.029] [info] ws_send: Step 416 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.030] [info] ws_send: Step 417 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.032] [info] ws_send: Step 418 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.034] [info] ws_send: Step 419 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.036] [info] ws_send: Step 420 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.038] [info] ws_send: Step 421 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.040] [info] ws_send: Step 422 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.041] [info] ws_send: Step 423 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.043] [info] ws_send: Step 424 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.045] [info] ws_send: Step 425 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.047] [info] ws_send: Step 426 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.049] [info] ws_send: Step 427 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.051] [info] ws_send: Step 428 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.052] [info] ws_send: Step 429 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.054] [info] ws_send: Step 430 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.056] [info] ws_send: Step 431 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.058] [info] ws_send: Step 432 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.060] [info] ws_send: Step 433 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.062] [info] ws_send: Step 434 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.063] [info] ws_send: Step 435 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.065] [info] ws_send: Step 436 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.067] [info] ws_send: Step 437 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.069] [info] ws_send: Step 438 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.071] [info] ws_send: Step 439 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.073] [info] ws_send: Step 440 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.075] [info] ws_send: Step 441 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.077] [info] ws_send: Step 442 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.078] [info] ws_send: Step 443 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.080] [info] ws_send: Step 444 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.082] [info] ws_send: Step 445 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.084] [info] ws_send: Step 446 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.086] [info] ws_send: Step 447 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.088] [info] ws_send: Step 448 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.090] [info] ws_send: Step 449 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.091] [info] ws_send: Step 450 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.093] [info] ws_send: Step 451 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.095] [info] ws_send: Step 452 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.097] [info] ws_send: Step 453 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.099] [info] ws_send: Step 454 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.101] [info] ws_send: Step 455 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.102] [info] ws_send: Step 456 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.104] [info] ws_send: Step 457 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.106] [info] ws_send: Step 458 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.108] [info] ws_send: Step 459 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.110] [info] ws_send: Step 460 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.112] [info] ws_send: Step 461 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.113] [info] ws_send: Step 462 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.115] [info] ws_send: Step 463 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.117] [info] ws_send: Step 464 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.119] [info] ws_send: Step 465 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.121] [info] ws_send: Step 466 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.123] [info] ws_send: Step 467 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.124] [info] ws_send: Step 468 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.126] [info] ws_send: Step 469 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.128] [info] ws_send: Step 470 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.130] [info] ws_send: Step 471 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.132] [info] ws_send: Step 472 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.134] [info] ws_send: Step 473 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.135] [info] ws_send: Step 474 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.137] [info] ws_send: Step 475 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.139] [info] ws_send: Step 476 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.141] [info] ws_send: Step 477 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.143] [info] ws_send: Step 478 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.145] [info] ws_send: Step 479 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.146] [info] ws_send: Step 480 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.148] [info] ws_send: Step 481 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.150] [info] ws_send: Step 482 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.152] [info] ws_send: Step 483 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.154] [info] ws_send: Step 484 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.155] [info] ws_send: Step 485 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.157] [info] ws_send: Step 486 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.159] [info] ws_send: Step 487 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.161] [info] ws_send: Step 488 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.163] [info] ws_send: Step 489 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.165] [info] ws_send: Step 490 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.166] [info] ws_send: Step 491 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.168] [info] ws_send: Step 492 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.170] [info] ws_send: Step 493 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.172] [info] ws_send: Step 494 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.174] [info] ws_send: Step 495 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.176] [info] ws_send: Step 496 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.177] [info] ws_send: Step 497 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.179] [info] ws_send: Step 498 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.181] [info] ws_send: Step 499 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.183] [info] ws_send: Step 500 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.185] [info] ws_send: Step 501 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.186] [info] ws_send: Step 502 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.188] [info] ws_send: Step 503 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.190] [info] ws_send: Step 504 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.192] [info] ws_send: Step 505 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.194] [info] ws_send: Step 506 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.196] [info] ws_send: Step 507 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.198] [info] ws_send: Step 508 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.199] [info] ws_send: Step 509 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.201] [info] ws_send: Step 510 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.203] [info] ws_send: Step 511 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.205] [info] ws_send: Step 512 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.207] [info] ws_send: Step 513 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.209] [info] ws_send: Step 514 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.210] [info] ws_send: Step 515 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.212] [info] ws_send: Step 516 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.214] [info] ws_send: Step 517 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.216] [info] ws_send: Step 518 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.218] [info] ws_send: Step 519 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.220] [info] ws_send: Step 520 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.221] [info] ws_send: Step 521 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.223] [info] ws_send: Step 522 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.225] [info] ws_send: Step 523 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.227] [info] ws_send: Step 524 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.229] [info] ws_send: Step 525 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.230] [info] ws_send: Step 526 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.232] [info] ws_send: Step 527 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.234] [info] ws_send: Step 528 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.236] [info] ws_send: Step 529 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.238] [info] ws_send: Step 530 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.240] [info] ws_send: Step 531 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.241] [info] ws_send: Step 532 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.243] [info] ws_send: Step 533 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.245] [info] ws_send: Step 534 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.247] [info] ws_send: Step 535 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.249] [info] ws_send: Step 536 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.250] [info] ws_send: Step 537 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.252] [info] ws_send: Step 538 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.254] [info] ws_send: Step 539 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.256] [info] ws_send: Step 540 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.258] [info] ws_send: Step 541 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.260] [info] ws_send: Step 542 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.261] [info] ws_send: Step 543 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.263] [info] ws_send: Step 544 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.265] [info] ws_send: Step 545 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.267] [info] ws_send: Step 546 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.269] [info] ws_send: Step 547 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.271] [info] ws_send: Step 548 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.272] [info] ws_send: Step 549 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.274] [info] ws_send: Step 550 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.276] [info] ws_send: Step 551 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.278] [info] ws_send: Step 552 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.280] [info] ws_send: Step 553 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.282] [info] ws_send: Step 554 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.283] [info] ws_send: Step 555 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.285] [info] ws_send: Step 556 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.287] [info] ws_send: Step 557 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.289] [info] ws_send: Step 558 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.291] [info] ws_send: Step 559 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.293] [info] ws_send: Step 560 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.294] [info] ws_send: Step 561 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.296] [info] ws_send: Step 562 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.298] [info] ws_send: Step 563 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.300] [info] ws_send: Step 564 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.302] [info] ws_send: Step 565 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.304] [info] ws_send: Step 566 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.305] [info] ws_send: Step 567 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.307] [info] ws_send: Step 568 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.309] [info] ws_send: Step 569 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.311] [info] ws_send: Step 570 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.313] [info] ws_send: Step 571 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.315] [info] ws_send: Step 572 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.316] [info] ws_send: Step 573 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.318] [info] ws_send: Step 574 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.320] [info] ws_send: Step 575 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.322] [info] ws_send: Step 576 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.324] [info] ws_send: Step 577 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.326] [info] ws_send: Step 578 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.327] [info] ws_send: Step 579 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.329] [info] ws_send: Step 580 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.331] [info] ws_send: Step 581 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.333] [info] ws_send: Step 582 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.335] [info] ws_send: Step 583 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.337] [info] ws_send: Step 584 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.338] [info] ws_send: Step 585 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.340] [info] ws_send: Step 586 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.342] [info] ws_send: Step 587 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.344] [info] ws_send: Step 588 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.346] [info] ws_send: Step 589 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.347] [info] ws_send: Step 590 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.349] [info] ws_send: Step 591 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.351] [info] ws_send: Step 592 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.353] [info] ws_send: Step 593 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.355] [info] ws_send: Step 594 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.357] [info] ws_send: Step 595 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.359] [info] ws_send: Step 596 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.360] [info] ws_send: Step 597 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.362] [info] ws_send: Step 598 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.364] [info] ws_send: Step 599 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.366] [info] ws_send: Step 600 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.368] [info] ws_send: Step 601 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.370] [info] ws_send: Step 602 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.371] [info] ws_send: Step 603 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.373] [info] ws_send: Step 604 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.375] [info] ws_send: Step 605 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.377] [info] ws_send: Step 606 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.379] [info] ws_send: Step 607 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.381] [info] ws_send: Step 608 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.382] [info] ws_send: Step 609 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.384] [info] ws_send: Step 610 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.386] [info] ws_send: Step 611 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.388] [info] ws_send: Step 612 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.390] [info] ws_send: Step 613 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.392] [info] ws_send: Step 614 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.393] [info] ws_send: Step 615 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.395] [info] ws_send: Step 616 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.397] [info] ws_send: Step 617 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.399] [info] ws_send: Step 618 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.401] [info] ws_send: Step 619 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.403] [info] ws_send: Step 620 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.404] [info] ws_send: Step 621 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.406] [info] ws_send: Step 622 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.408] [info] ws_send: Step 623 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.410] [info] ws_send: Step 624 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.412] [info] ws_send: Step 625 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.414] [info] ws_send: Step 626 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.415] [info] ws_send: Step 627 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.417] [info] ws_send: Step 628 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.419] [info] ws_send: Step 629 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.421] [info] ws_send: Step 630 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.423] [info] ws_send: Step 631 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.425] [info] ws_send: Step 632 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.427] [info] ws_send: Step 633 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.428] [info] ws_send: Step 634 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.430] [info] ws_send: Step 635 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.432] [info] ws_send: Step 636 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.434] [info] ws_send: Step 637 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.436] [info] ws_send: Step 638 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.438] [info] ws_send: Step 639 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.439] [info] ws_send: Step 640 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.441] [info] ws_send: Step 641 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.443] [info] ws_send: Step 642 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.445] [info] ws_send: Step 643 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.447] [info] ws_send: Step 644 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.449] [info] ws_send: Step 645 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.450] [info] ws_send: Step 646 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.452] [info] ws_send: Step 647 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.454] [info] ws_send: Step 648 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.456] [info] ws_send: Step 649 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.458] [info] ws_send: Step 650 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.460] [info] ws_send: Step 651 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.461] [info] ws_send: Step 652 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.463] [info] ws_send: Step 653 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.465] [info] ws_send: Step 654 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.467] [info] ws_send: Step 655 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.469] [info] ws_send: Step 656 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.471] [info] ws_send: Step 657 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.472] [info] ws_send: Step 658 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.474] [info] ws_send: Step 659 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.476] [info] ws_send: Step 660 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.478] [info] ws_send: Step 661 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.480] [info] ws_send: Step 662 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.482] [info] ws_send: Step 663 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.483] [info] ws_send: Step 664 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.485] [info] ws_send: Step 665 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.487] [info] ws_send: Step 666 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.489] [info] ws_send: Step 667 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.491] [info] ws_send: Step 668 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.493] [info] ws_send: Step 669 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.494] [info] ws_send: Step 670 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.496] [info] ws_send: Step 671 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.498] [info] ws_send: Step 672 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.500] [info] ws_send: Step 673 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.502] [info] ws_send: Step 674 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.503] [info] ws_send: Step 675 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.505] [info] ws_send: Step 676 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.507] [info] ws_send: Step 677 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.509] [info] ws_send: Step 678 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.511] [info] ws_send: Step 679 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.513] [info] ws_send: Step 680 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.514] [info] ws_send: Step 681 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.516] [info] ws_send: Step 682 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.518] [info] ws_send: Step 683 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.520] [info] ws_send: Step 684 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.522] [info] ws_send: Step 685 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.524] [info] ws_send: Step 686 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.525] [info] ws_send: Step 687 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.527] [info] ws_send: Step 688 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.529] [info] ws_send: Step 689 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.531] [info] ws_send: Step 690 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.533] [info] ws_send: Step 691 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.535] [info] ws_send: Step 692 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.536] [info] ws_send: Step 693 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.538] [info] ws_send: Step 694 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.540] [info] ws_send: Step 695 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.542] [info] ws_send: Step 696 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.544] [info] ws_send: Step 697 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.545] [info] ws_send: Step 698 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.547] [info] ws_send: Step 699 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.549] [info] ws_send: Step 700 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.551] [info] ws_send: Step 701 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.553] [info] ws_send: Step 702 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.555] [info] ws_send: Step 703 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.556] [info] ws_send: Step 704 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.558] [info] ws_send: Step 705 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.560] [info] ws_send: Step 706 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.562] [info] ws_send: Step 707 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.564] [info] ws_send: Step 708 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.566] [info] ws_send: Step 709 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.567] [info] ws_send: Step 710 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.569] [info] ws_send: Step 711 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.571] [info] ws_send: Step 712 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.573] [info] ws_send: Step 713 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.575] [info] ws_send: Step 714 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.576] [info] ws_send: Step 715 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.578] [info] ws_send: Step 716 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.580] [info] ws_send: Step 717 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.582] [info] ws_send: Step 718 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.584] [info] ws_send: Step 719 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.586] [info] ws_send: Step 720 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.587] [info] ws_send: Step 721 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.589] [info] ws_send: Step 722 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.591] [info] ws_send: Step 723 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.593] [info] ws_send: Step 724 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.595] [info] ws_send: Step 725 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.597] [info] ws_send: Step 726 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.598] [info] ws_send: Step 727 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.600] [info] ws_send: Step 728 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.602] [info] ws_send: Step 729 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.604] [info] ws_send: Step 730 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.606] [info] ws_send: Step 731 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.607] [info] ws_send: Step 732 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.609] [info] ws_send: Step 733 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.611] [info] ws_send: Step 734 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.613] [info] ws_send: Step 735 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.615] [info] ws_send: Step 736 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.617] [info] ws_send: Step 737 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.618] [info] ws_send: Step 738 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.620] [info] ws_send: Step 739 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.622] [info] ws_send: Step 740 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.624] [info] ws_send: Step 741 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.626] [info] ws_send: Step 742 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.628] [info] ws_send: Step 743 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.630] [info] ws_send: Step 744 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.632] [info] ws_send: Step 745 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.633] [info] ws_send: Step 746 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.635] [info] ws_send: Step 747 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.637] [info] ws_send: Step 748 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.639] [info] ws_send: Step 749 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.641] [info] ws_send: Step 750 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.642] [info] ws_send: Step 751 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.644] [info] ws_send: Step 752 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.646] [info] ws_send: Step 753 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.648] [info] ws_send: Step 754 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.650] [info] ws_send: Step 755 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.652] [info] ws_send: Step 756 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.653] [info] ws_send: Step 757 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.655] [info] ws_send: Step 758 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.657] [info] ws_send: Step 759 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.659] [info] ws_send: Step 760 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.661] [info] ws_send: Step 761 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.662] [info] ws_send: Step 762 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.664] [info] ws_send: Step 763 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.666] [info] ws_send: Step 764 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.668] [info] ws_send: Step 765 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.670] [info] ws_send: Step 766 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.673] [info] ws_send: Step 767 out of 768
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.676] [info] ws_send: 0 bytes left to be sent
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.689] [info] Sending file through websocket completed in 1801
|
||||
15:29:55 send.1 | [2020-01-05 15:29:55.689] [info] ws_send: Send transfer rate: 13 MB/s
|
||||
15:29:56 send.1 | [2020-01-05 15:29:56.142] [info] ws_send: Waiting for ack...
|
||||
15:29:57 send.1 | [2020-01-05 15:29:57.399] [info] ws_send: received message (25183026 bytes)
|
||||
15:29:57 send.1 | [2020-01-05 15:29:57.399] [info] ws_send: Done !
|
||||
15:29:59 send.1 | [2020-01-05 15:29:59.233] [info] ws_send: connection closed: code 1000 reason Normal closure
|
||||
15:29:59 send.1 |
|
||||
15:29:59 system | send.1 stopped (rc=0)
|
||||
15:29:59 system | sending SIGTERM to nginx.1 (pid 75372)
|
||||
15:29:59 system | sending SIGTERM to websocket_server.1 (pid 75374)
|
||||
15:29:59 system | nginx.1 stopped (rc=0)
|
||||
15:29:59 system | websocket_server.1 stopped (rc=-15)
|
||||
```
|
||||
|
||||
## Sending large files over SSL
|
||||
|
||||
Running inside docker
|
||||
|
||||
```
|
||||
$ make docker && make server_ssl
|
||||
```
|
||||
|
||||
On the client
|
||||
|
||||
```
|
||||
$ make ws_mbedtls && cp build/ws/ws /usr/local/bin/ws && ws send --verify_none wss://localhost:8766 /tmp/big_file
|
||||
```
|
||||
|
36
test/compatibility/python/websockets/broadcast_server.py
Normal file
36
test/compatibility/python/websockets/broadcast_server.py
Normal file
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
# WS server example
|
||||
|
||||
import asyncio
|
||||
import os
|
||||
import websockets
|
||||
|
||||
|
||||
clients = set()
|
||||
|
||||
|
||||
async def echo(websocket, path):
|
||||
clients.add(websocket)
|
||||
|
||||
try:
|
||||
while True:
|
||||
msg = await websocket.recv()
|
||||
|
||||
for ws in clients:
|
||||
if ws != websocket:
|
||||
print(f'Sending {len(msg)} bytes to {ws}')
|
||||
await ws.send(msg)
|
||||
except websockets.exceptions.ConnectionClosedOK:
|
||||
print('Client terminating')
|
||||
clients.remove(websocket)
|
||||
|
||||
|
||||
host = os.getenv('BIND_HOST', 'localhost')
|
||||
print(f'Serving on {host}:8766')
|
||||
|
||||
start_server = websockets.serve(echo, host, 8766, max_size=2 ** 30)
|
||||
|
||||
asyncio.get_event_loop().run_until_complete(start_server)
|
||||
asyncio.get_event_loop().run_forever()
|
||||
|
43
test/compatibility/python/websockets/broadcast_server_ssl.py
Normal file
43
test/compatibility/python/websockets/broadcast_server_ssl.py
Normal file
@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
# WS server example
|
||||
|
||||
import asyncio
|
||||
import os
|
||||
import pathlib
|
||||
import ssl
|
||||
import websockets
|
||||
|
||||
|
||||
clients = set()
|
||||
|
||||
|
||||
async def echo(websocket, path):
|
||||
clients.add(websocket)
|
||||
|
||||
try:
|
||||
while True:
|
||||
msg = await websocket.recv()
|
||||
|
||||
for ws in clients:
|
||||
if ws != websocket:
|
||||
print(f'Sending {len(msg)} bytes to {ws}')
|
||||
await ws.send(msg)
|
||||
except websockets.exceptions.ConnectionClosedOK:
|
||||
print('Client terminating')
|
||||
clients.remove(websocket)
|
||||
|
||||
|
||||
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
||||
ssl_context.load_cert_chain('trusted-server-crt.pem',
|
||||
'trusted-server-key.pem')
|
||||
|
||||
host = os.getenv('BIND_HOST', 'localhost')
|
||||
print(f'Serving on {host}:8766')
|
||||
|
||||
start_server = websockets.serve(echo, host, 8766, max_size=2 ** 30, ssl=ssl_context)
|
||||
|
||||
asyncio.get_event_loop().run_until_complete(start_server)
|
||||
asyncio.get_event_loop().run_forever()
|
||||
|
||||
|
25
test/compatibility/python/websockets/echo_client.py
Normal file
25
test/compatibility/python/websockets/echo_client.py
Normal file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# websocket send client
|
||||
|
||||
import argparse
|
||||
import asyncio
|
||||
import websockets
|
||||
|
||||
|
||||
async def send(url):
|
||||
async with websockets.connect(url) as ws:
|
||||
while True:
|
||||
message = input('> ')
|
||||
print('Sending message...')
|
||||
await ws.send(message)
|
||||
print('Message sent.')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description='websocket proxy.')
|
||||
parser.add_argument('--url', help='Remote websocket url',
|
||||
default='wss://echo.websocket.org')
|
||||
args = parser.parse_args()
|
||||
|
||||
asyncio.get_event_loop().run_until_complete(send(args.url))
|
@ -3,20 +3,20 @@
|
||||
# WS server example
|
||||
|
||||
import asyncio
|
||||
import os
|
||||
import websockets
|
||||
|
||||
async def hello(websocket, path):
|
||||
await websocket.send(f"> Welcome !")
|
||||
|
||||
name = await websocket.recv()
|
||||
print(f"< {name}")
|
||||
async def echo(websocket, path):
|
||||
while True:
|
||||
msg = await websocket.recv()
|
||||
print(f'Received {len(msg)} bytes')
|
||||
await websocket.send(msg)
|
||||
|
||||
greeting = f"Hello {name}!"
|
||||
host = os.getenv('BIND_HOST', 'localhost')
|
||||
print(f'Serving on {host}:8766')
|
||||
|
||||
await websocket.send(greeting)
|
||||
print(f"> {greeting}")
|
||||
|
||||
start_server = websockets.serve(hello, 'localhost', 8765)
|
||||
start_server = websockets.serve(echo, host, 8766, max_size=2 ** 30)
|
||||
|
||||
asyncio.get_event_loop().run_until_complete(start_server)
|
||||
asyncio.get_event_loop().run_forever()
|
||||
|
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
# WS server example
|
||||
|
||||
import asyncio
|
||||
import websockets
|
||||
|
||||
async def hello(websocket, path):
|
||||
await websocket.send(f"> Welcome !")
|
||||
|
||||
name = await websocket.recv()
|
||||
print(f"< {name}")
|
||||
|
||||
greeting = f"Hello {name}!"
|
||||
|
||||
await websocket.send(greeting)
|
||||
print(f"> {greeting}")
|
||||
|
||||
async def echo(websocket, path):
|
||||
msg = await websocket.recv()
|
||||
print(f'Received {len(msg)} bytes')
|
||||
await websocket.send(msg)
|
||||
|
||||
print('Serving on localhost:8766')
|
||||
start_server = websockets.serve(echo, 'localhost', 8766)
|
||||
|
||||
asyncio.get_event_loop().run_until_complete(start_server)
|
||||
asyncio.get_event_loop().run_forever()
|
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
# WS server example
|
||||
|
||||
import asyncio
|
||||
import os
|
||||
import websockets
|
||||
|
||||
|
||||
async def echo(websocket, path):
|
||||
while True:
|
||||
msg = await websocket.recv()
|
||||
print(f'Received {len(msg)} bytes')
|
||||
await websocket.send(msg)
|
||||
|
||||
host = os.getenv('BIND_HOST', 'localhost')
|
||||
print(f'Serving on {host}:8766')
|
||||
|
||||
start_server = websockets.serve(echo, host, 8766, max_size=2 ** 30)
|
||||
|
||||
asyncio.get_event_loop().run_until_complete(start_server)
|
||||
asyncio.get_event_loop().run_forever()
|
27
test/compatibility/python/websockets/echo_server_ssl.py
Normal file
27
test/compatibility/python/websockets/echo_server_ssl.py
Normal file
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
# WS server example
|
||||
|
||||
import asyncio
|
||||
import os
|
||||
import pathlib
|
||||
import ssl
|
||||
import websockets
|
||||
|
||||
|
||||
async def echo(websocket, path):
|
||||
msg = await websocket.recv()
|
||||
print(f'Received {len(msg)} bytes')
|
||||
await websocket.send(msg)
|
||||
|
||||
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
||||
ssl_context.load_cert_chain('trusted-server-crt.pem',
|
||||
'trusted-server-key.pem')
|
||||
|
||||
host = os.getenv('BIND_HOST', 'localhost')
|
||||
print(f'Serving on {host}:8766')
|
||||
|
||||
start_server = websockets.serve(echo, host, 8766, max_size=2 ** 30, ssl=ssl_context)
|
||||
|
||||
asyncio.get_event_loop().run_until_complete(start_server)
|
||||
asyncio.get_event_loop().run_forever()
|
0
test/compatibility/python/websockets/empty_file
Normal file
0
test/compatibility/python/websockets/empty_file
Normal file
16
test/compatibility/python/websockets/entrypoint.sh
Normal file
16
test/compatibility/python/websockets/entrypoint.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $MODE in
|
||||
echo_server)
|
||||
python /usr/bin/echo_server.py
|
||||
;;
|
||||
echo_server_ssl)
|
||||
python /usr/bin/echo_server_ssl.py
|
||||
;;
|
||||
broadcast_server)
|
||||
python /usr/bin/broadcast_server.py
|
||||
;;
|
||||
broadcast_server_ssl)
|
||||
python /usr/bin/broadcast_server_ssl.py
|
||||
;;
|
||||
esac
|
1
test/compatibility/python/websockets/localhost.pem
Symbolic link
1
test/compatibility/python/websockets/localhost.pem
Symbolic link
@ -0,0 +1 @@
|
||||
trusted-client-crt.pem
|
@ -1,6 +1,9 @@
|
||||
all:
|
||||
honcho start # install honcho (pip install honcho) or procman (the original ruby script)
|
||||
|
||||
.PHONY: docker
|
||||
|
||||
NAME := bsergean/ws_proxy
|
||||
NAME := bsergean/echo_server
|
||||
TAG := $(shell cat DOCKER_VERSION)
|
||||
IMG := ${NAME}:${TAG}
|
||||
LATEST := ${NAME}:latest
|
||||
@ -18,3 +21,15 @@ docker_push:
|
||||
docker tag ${IMG} ${LATEST}
|
||||
docker push ${LATEST}
|
||||
docker push ${IMG}
|
||||
|
||||
echo_server:
|
||||
docker run -p 8766:8766 -e BIND_HOST=0.0.0.0 -e MODE=echo_server -it --rm bsergean/echo_server:build
|
||||
|
||||
echo_server_ssl:
|
||||
docker run -p 8766:8766 -e BIND_HOST=0.0.0.0 -e MODE=echo_server_ssl -it --rm bsergean/echo_server:build
|
||||
|
||||
broadcast_server:
|
||||
docker run -p 8766:8766 -e BIND_HOST=0.0.0.0 -e MODE=broadcast_server -it --rm bsergean/echo_server:build
|
||||
|
||||
broadcast_server_ssl:
|
||||
docker run -p 8766:8766 -e BIND_HOST=0.0.0.0 -e MODE=broadcast_server_ssl -it --rm bsergean/echo_server:build
|
||||
|
36
test/compatibility/python/websockets/nginx.conf
Normal file
36
test/compatibility/python/websockets/nginx.conf
Normal file
@ -0,0 +1,36 @@
|
||||
|
||||
error_log stderr warn;
|
||||
|
||||
daemon off;
|
||||
|
||||
events {
|
||||
worker_connections 32;
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
upstream websocket {
|
||||
server localhost:8766;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8765 ssl;
|
||||
|
||||
ssl_certificate trusted-client-crt.pem;
|
||||
ssl_certificate_key trusted-client-key.pem;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
location / {
|
||||
proxy_pass http://websocket;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
}
|
||||
}
|
||||
}
|
1
test/compatibility/python/websockets/small_file
Normal file
1
test/compatibility/python/websockets/small_file
Normal file
@ -0,0 +1 @@
|
||||
not much in here
|
19
test/compatibility/python/websockets/trusted-client-crt.pem
Normal file
19
test/compatibility/python/websockets/trusted-client-crt.pem
Normal file
@ -0,0 +1,19 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIDLDCCAhSgAwIBAgIJALyEpMxNH62gMA0GCSqGSIb3DQEBCwUAMEExFDASBgNV
|
||||
BAoMC21hY2hpbmV6b25lMRQwEgYDVQQKDAtJWFdlYlNvY2tldDETMBEGA1UEAwwK
|
||||
dHJ1c3RlZC1jYTAeFw0xOTEyMjQwMDM3MzVaFw0yMDEyMjMwMDM3MzVaMEUxFDAS
|
||||
BgNVBAoMC21hY2hpbmV6b25lMRQwEgYDVQQKDAtJWFdlYlNvY2tldDEXMBUGA1UE
|
||||
AwwOdHJ1c3RlZC1jbGllbnQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
|
||||
AQDFCipQ6OIJX15n2okHxuSkviuzcHzoYEzPhF6QXzKFbKhuzp4g0mMOXPvDKQE+
|
||||
+dycGm6l1yg1pUuNKNxYjDWcSqOIqvDaOv9DkJCCNXpAGbh1CUmGdmp4HvwrzSIn
|
||||
+3s/enC+zatcnwhrOyJk8k/9VqKlt+vB1++UAQV1eSX7adb/BemoyMguAQ8edAls
|
||||
IiVSRrHRRyHy98j97jxX5lIdoC1FMv7Tj4suJA7wvTHlq3clpLL8t6dw1DAmBybK
|
||||
ShUg9SC/T07WJ2cOo8wka+p7S/blh8qZwIy7kTgCI+SYgRfEOA94u9A9mDqp295h
|
||||
DCghN2UdU3hh1k7SChI/owLpAgMBAAGjIzAhMB8GA1UdEQQYMBaCCWxvY2FsaG9z
|
||||
dIIJMTI3LjAuMC4xMA0GCSqGSIb3DQEBCwUAA4IBAQAtsbBGLUxABNH5yoRbk0o3
|
||||
sGFMVkNDKkCE24BVkUfNyKUxLQWMknw3B4bmhrC8ZQPRk069ERV0ZR6eB2/9EG9s
|
||||
Pzy4JbMwWrP5c0UIMJRk3w8ev9FXrsKwG6VhIPnvAdbJEis+7eDmYgpvmsbsYRmG
|
||||
cqJcWvDKffki52Gbr9WgxLpqCGc2XMGr1Y1jU73Y4zmOeNLiU6HRKimNtGjqx/Tx
|
||||
QoGVTNwki4TQTwQIyJ+HOj0c49IDJ93GbW5aymOT/e1IXDe07e9yg1r80bdFn23X
|
||||
9bmRagT1/qu8lXfOpQA0foYeSJRSN7gITPmo7G2ogGVr6dZwhAHDYYy2pwW32j7o
|
||||
-----END CERTIFICATE-----
|
27
test/compatibility/python/websockets/trusted-client-key.pem
Normal file
27
test/compatibility/python/websockets/trusted-client-key.pem
Normal file
@ -0,0 +1,27 @@
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEpAIBAAKCAQEAxQoqUOjiCV9eZ9qJB8bkpL4rs3B86GBMz4RekF8yhWyobs6e
|
||||
INJjDlz7wykBPvncnBpupdcoNaVLjSjcWIw1nEqjiKrw2jr/Q5CQgjV6QBm4dQlJ
|
||||
hnZqeB78K80iJ/t7P3pwvs2rXJ8IazsiZPJP/VaipbfrwdfvlAEFdXkl+2nW/wXp
|
||||
qMjILgEPHnQJbCIlUkax0Uch8vfI/e48V+ZSHaAtRTL+04+LLiQO8L0x5at3JaSy
|
||||
/LencNQwJgcmykoVIPUgv09O1idnDqPMJGvqe0v25YfKmcCMu5E4AiPkmIEXxDgP
|
||||
eLvQPZg6qdveYQwoITdlHVN4YdZO0goSP6MC6QIDAQABAoIBAGMCJ58+Vg5FmKdw
|
||||
vThmLY/GaykgVfNiKFaB+g5rd3Rp0/zR3804SkP2Xx+CpDijzsG12nGEupSyOVN1
|
||||
+7qWwX2GV8QduSa/THMD2klDW+mHwxM0Fnj1WayATVApJIeYqyaLfMmziO7ijpVr
|
||||
Qm4dACqZdOL2lwVxXtYs6TRNKtO4SIzmeVS39hmV2zeGmhUzI4hbirLOWBtbsPpl
|
||||
qi5wyVkHoEVLnY376TOFc8u5+636yh6G2yqa/zsv9BBXG77DKWl659Fsd4DaUcRG
|
||||
sk6CTH+I99aE0wrzSUuQmDR/IflxT+DP2ceNrCIc1h1oFzrBKh3fpFR3+D6SSGMn
|
||||
r9Nk7LECgYEA/8CHrh2LLjqsLbqBoMUXthPwPrVGlK+KGb14+S8Pbfa2hDFWhoif
|
||||
/FBWAD7GSXedjL3kxFSfmFxsDGPSyqqLRuZNaNs8Ar7vage6FYT6Vfh/8TYOToNr
|
||||
8AHmhgQCg4luC8VGedCeEDVmUgkdJd/baoY8r3LKXaqsLxyBQN1Hzi0CgYEAxTsQ
|
||||
jMFwACIdZHJKgUAdEA6PJM0HCS45F4116yqum99S4H10O1VdWK/vKeb13PK//25X
|
||||
liXhjNHqcVLX08meqs561nKBWhbA72UU3oBAF4RNLHkbZMh1HtZGfBCfJ/Kmq12/
|
||||
ZmGCwggUHhwnKD02hIGdffc+0eLTeCQL8HKi+S0CgYEA59+MpAXRHDbByCviPvqy
|
||||
hrgJBzGfLksAsFmihnluScp2q993jT3tnvrPHiXL7OvwAZxg/seicqbIp2sRwAFj
|
||||
iQJgiILMI8kskzsyMTSBKtTEWtMhoXlxsQZoFHUqOkutZCqVvPexdwyTGil9LcuJ
|
||||
yUivWHqAku+ccJItdbup0HkCgYEAswkZzdvucoCFU+AX19o+R4wfzpU7FM9bzhCA
|
||||
gTgehqojzlqzfwTPlqkmHlBk0Oue9BzS7x5172HCQpqkBsGYAY8rnK0W1JOhEe8d
|
||||
EZk0FOTpNTy+bC83egWiuA5Sm22+dALGswZDLyUsNeTyeqmOapxKPcWJxfb0ZbO7
|
||||
DsrRPAUCgYAzJm79VvEeRtwKhm0AcDSikJgNKojm6T6BIi/9QJyMTYlvGpBEwPBt
|
||||
iqmqCqXGmUYafFApTUPyzmyDUsLfeHRwylvPn4UtYXPJ1UKGCVY3SWiJQi2CHSvC
|
||||
gGSIifjzyeSjhw1cqzS2jHfu4lu6p2GBv/fyXLRVS7x6xY7OBinmvg==
|
||||
-----END RSA PRIVATE KEY-----
|
19
test/compatibility/python/websockets/trusted-server-crt.pem
Normal file
19
test/compatibility/python/websockets/trusted-server-crt.pem
Normal file
@ -0,0 +1,19 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIDLDCCAhSgAwIBAgIJALyEpMxNH62fMA0GCSqGSIb3DQEBCwUAMEExFDASBgNV
|
||||
BAoMC21hY2hpbmV6b25lMRQwEgYDVQQKDAtJWFdlYlNvY2tldDETMBEGA1UEAwwK
|
||||
dHJ1c3RlZC1jYTAeFw0xOTEyMjQwMDM3MzVaFw0yMDEyMjMwMDM3MzVaMEUxFDAS
|
||||
BgNVBAoMC21hY2hpbmV6b25lMRQwEgYDVQQKDAtJWFdlYlNvY2tldDEXMBUGA1UE
|
||||
AwwOdHJ1c3RlZC1zZXJ2ZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
|
||||
AQCv0T68TZZ7nab+UWPhssGLrInE0egzWn1AF20RkJv1ePIyU0rQbDxuuP+HQbXD
|
||||
FzF6vo2j+5p+VxxvUOfko9V6xad3cB4T3AoFrT5sYI8gQX1uby6pjqVX16TK5t+c
|
||||
i56aNhUXdmcWhuUzlIMIauvueohd+pNj6E6weWqCf8QFD6KYPgK3wWCR4VfWA5QY
|
||||
RJUhv2aI9HrC9P4Mg0mut8LYURRQvGxOhtbAw76FJ6IgBujpgI5GLHgVK5Q1GlXK
|
||||
8W7RlNKNmxX+mzK2D6nHixCUGvrFk9nZgZiaHI/h5x0IGXu0sbwlTPjqQ4Axpofw
|
||||
G1FDi/er4FaGCzU4CKmc7rxRAgMBAAGjIzAhMB8GA1UdEQQYMBaCCWxvY2FsaG9z
|
||||
dIIJMTI3LjAuMC4xMA0GCSqGSIb3DQEBCwUAA4IBAQBkUB6smmApnBfr2eDwKJew
|
||||
GQUMUAa7TlyANYlwQ6EjbAH7H6oNf7Sm63Go2Y72JjZPw3OvZl3QcvvS14QxYJ71
|
||||
kRdvJ1mhEbIaA2QkdZCuDmcQGLfVEyo0j5q03amQKt9QtSv9MsX1Ok2HqGL17Tf1
|
||||
QiUqlkzGCqMIsU20X8QzqwYCGzYZeTFtwLYi75za15Uo/6tE2KwzU7oUhuIebOaS
|
||||
Sa+s2Y1TjpbWyw9usnuQWQ0k1FJR78F1mKJGghmPBoySBHJdLkLYOMhE1u2shgk5
|
||||
N0muMcDRTeHLxm1aBPLHtkRbW3QscEQB6GkT2Dt4U66qNV2CY7Gk0F5xxOrGBC/9
|
||||
-----END CERTIFICATE-----
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user