REPOSITORY / ScuroNeko/mtg

Commits

COMMITS REPOSITORY
Commit Graph
773 Commits
Author SHA1 Message Date
Sergey ArkhipovandGitHub b19f491fc8 Merge pull request #189 from 9seconds/relay-close-racecondition
Fix race condition in closing a relay
2021-05-07 11:40:06 +03:00
9seconds 16f9ec690b Fix race condition in closing a relay
This commit fixes a situration when relay can be reset before all
waiting goroutines are finished. For example, we terminate processing
based on some event: socket error etc. So, error happens and context is
cancelled. After that a main relay goroutine starts to wait. Meanwhile a
second goroutine reaches deferred function and set wg to done. It means
that main goroutine can continue.

In this case this is really possible that we can start resetting before
transmit goroutine really exits.

A correct solution is to always do wg.Done() as a first deferred thing
on entering to a function. In that case we do not need reordering and so
on.
2021-05-06 22:08:39 +03:00
9seconds fec60083a3 Merge remote-tracking branch 'origin/master' into stable 2021-05-05 11:57:47 +03:00
9seconds 0882d45d6a Update dependencies v2.0.0 2021-05-05 11:47:57 +03:00
9seconds 86c6541e0d Small typo 2021-05-05 11:47:12 +03:00
Sergey ArkhipovandGitHub cc1f60c4a6 Merge pull request #187 from 9seconds/trimpath
Add trimpath for better build reproducibility
2021-05-05 11:44:28 +03:00
9seconds 700f71bb31 Add trimpath for better build reproducibility 2021-05-05 11:23:02 +03:00
Sergey ArkhipovandGitHub 097b52c8ef Make values in tag meaning more consistent 2021-04-12 18:53:23 +03:00
Sergey ArkhipovandGitHub c3ffd7a307 Merge pull request #184 from 9seconds/e2e-integration-test
Add a real integration test
2021-04-12 10:41:19 +03:00
9seconds fe3b0f3ca5 Add a real integration test 2021-04-12 10:29:19 +03:00
Sergey ArkhipovandGitHub 2273a0e4af Merge pull request #183 from 9seconds/test-stage
Add option to use telegram test dcs
2021-04-09 17:14:08 +03:00
9seconds 115510985a Add option to use telegram test dcs 2021-04-09 16:45:37 +03:00
9seconds 2b5b325722 Add doc for cli package v2.0.0-rc1 2021-04-09 14:51:46 +03:00
9seconds c536cbecd5 Fix a link to go reference 2021-04-09 14:44:57 +03:00
9seconds 5e9d0649a2 Update dependencies 2021-04-09 14:35:50 +03:00
9seconds 585ebfeb50 Update golanci-lint 2021-04-09 14:35:04 +03:00
Sergey ArkhipovandGitHub 81bca75c25 Merge pull request #180 from 9seconds/v2
V2
2021-04-09 14:09:29 +03:00
9seconds 4f048a3b82 Update README 2021-04-09 13:30:04 +03:00
9seconds 43f5d2131e Add test for client hello validation 2021-04-08 15:26:49 +03:00
9seconds e2073f0585 Remove timeattack module 2021-04-08 14:58:14 +03:00
9seconds 0652f322fa Add docstrings to a logger 2021-04-08 14:39:01 +03:00
9seconds d3aa0f2de5 Add mtglib-level documentation 2021-04-08 11:54:49 +03:00
9seconds 40c6cf294a Add documentation for the objects of mtglib 2021-04-08 11:47:44 +03:00
9seconds 4c38ea2b11 Refactor some configuration to proxy_opts 2021-04-08 11:00:54 +03:00
9seconds e6d444546f Add documentation for a secret 2021-04-07 18:02:16 +03:00
9seconds 611583ba88 Add doc strings to mtglib events 2021-04-07 15:22:58 +03:00
9seconds 463af648ce Rework events 2021-04-07 14:40:54 +03:00
9seconds b748603096 Add docs for stats 2021-04-06 12:00:14 +03:00
9seconds 54a7c6a2a5 Small subtle optimizations of faketls 2021-04-06 11:09:37 +03:00
9seconds a3bae795c4 Add documentation for timeattack 2021-04-06 11:03:51 +03:00
9seconds 372c703ad6 Add documentation for network 2021-04-05 18:46:15 +03:00
9seconds 0dd890a09d Add documentation for logger 2021-04-05 16:55:26 +03:00
9seconds 0274b3436a Add documentation for ipblocklist 2021-04-05 16:09:21 +03:00
9seconds 04b88cc864 Add documentation for event stream 2021-04-05 15:12:46 +03:00
9seconds b3112c5c67 Move documentation to init.go 2021-04-05 11:39:09 +03:00
9seconds 3661fe108d Add documentation for antireplay package 2021-04-05 11:35:46 +03:00
9seconds 5d5b77d73b Tune defaults 2021-04-02 21:58:22 +03:00
9seconds 7bffdcdf4a Move config to internal 2021-04-02 21:41:02 +03:00
9seconds ea7033d569 Move cli to internal 2021-04-02 21:36:15 +03:00
9seconds 24fdec6694 Move testlib to internal 2021-04-02 21:32:06 +03:00
9seconds 2fe04c7c9b Move utils to internal 2021-04-02 21:27:34 +03:00
9seconds 7b5cb8e14b Small updates for docker file 2021-04-02 17:41:33 +03:00
9seconds 8566cede74 Update build flags in Makefile 2021-04-02 17:37:24 +03:00
9seconds 2dc30c5837 Simplify cli 2021-04-02 17:12:24 +03:00
9seconds 2cdff017e2 Add base tests for proxy 2021-04-02 17:08:15 +03:00
9seconds 766800700a Add test for connrewind 2021-04-02 14:27:02 +03:00
9seconds 7e7823118e Add test conntraffic 2021-04-02 12:40:22 +03:00
9seconds 784a5818c8 Cover last case in secret 2021-04-02 11:49:07 +03:00
9seconds 75b95995a9 Add tests for stream context 2021-04-02 11:39:18 +03:00
9seconds 5941f0674a Enforce code coverage of secret 2021-04-02 11:03:35 +03:00