Closed OneFingerCodingWarrior closed 5 years ago
Could you submit a pull request with the code changes? That would be much easier for me to review and comment on!
I see your account is quite new so you may not know how. I did a quick search and this looks like it has the steps you'd need to follow to fork the repo, make a change, and then submit a pull request for me to review! https://gist.github.com/Chaser324/ce0505fbed06b947d962 .
If you can't get it to work do let me know and I'll try to copy the changes you've made into a pull request manually.
Hi Alan, sorry for the inconvenience , in fact, I can not check in to the branch monotorrent-0.99.0 with SVN
The modification is not that much , so I think maybe you can copy the changes manually. And I'm not sure if my changes is right, so i need your review
@OneFingerCodingWarrior With github you can fork the repository, make whatever changes you want to the copy you forked, and then submit those changes to this repository. As such you don't need commit access to this repository in order to change code and propose it!
However, for simplicity i did copy/paste the changes you pasted here and pushed them to a branch to review them! I'll put some comments on that commit as I review :)
You should be able to see the comments i left here: https://github.com/mono/monotorrent/commit/f0333bb753e2499766610b6d84ddd380db75c23b . Some of the changes look good alright! I'll need to review in a little more detail :)
I merged a few of the chunks you suggested in your changes! Thanks!
Hi: I changed the code a little bit for the following two reasones
1、manager.Peers.ActivePeers.Add(peer); positon is a little misleading, because there are lot of exception throwed from CheckEncryptionAsync or EndCheckEncryption
2、if handshake is finished successfully ,shoudle't we begin send requestes immediatlly?