-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use erlang-idna from hackney instead of own impl. #350
Conversation
Your PR is useful and I'd like to merge it to the master branch but there is a problem. Every job on travis fails because s2s_SUITE fails. Unfortunately there is no crash on Mongoose side while doing the s2s tests. In the In your tests (on your travis) I also noticed that
|
Thanks @michalwski, will see what the error is & merge upstream master back into the branch. I anyway planned doing a new PR once everything was clear in order to have one commit only for merging. Will get back to you as soon as I made sure s2s_SUITE runs again! |
s2s_SUITE worked now, there are some other failures though. I'll wait on the build and see what happens. I have my doubts about having the same code 3 times with handling of the exception & converting to binary again. Maybe I should move this into a simple function somewhere. What do you think? |
Perfect, seems now to work :) What about creating a helper function? Do you think it's necessary? |
Right, helper function is good idea :) Regarding other fails. Some times in rush hours where travis-ci is very loaded it happens that some time sensitive tests fails. Usually it's 1-2 jobs where such test fails. |
Where would you place it? adding a |
I think ejabberd_s2s is a good candidate. |
Ok, thought about this as well, will do 👍 |
Looks good now :) You don't have to create new PR, just rebase your branch where you squash some commits and force push to the same branch. And remove |
Removes maintenance burden of `idna` and also enables the use of `hackney` when developing own modules (otherwise there's a conflict because both modules are called the same).
Done 👍 (was a bit afraid, force push and such.. but went apparently well ;)) |
Thanks for your work! I'll wait for travis to finish the build and I'll merge to master. |
…pendency-wip Use erlang-idna from hackney instead of own impl.
Yay 👍 |
Removes maintenance burden of
idna
and also enables the use ofhackney
when developing own modules (otherwise there's a conflict because both modules are called the same).I'm not sure if everything works though, I couldn't get the tests to run (neither on the local machine nor on TravisCI). Therefore if you think something's off please tell me and I'm more than happy to change the PR (that's why the branch is also called WIP).
Using
case catch
is probably not the best idea as well and I guess you won't like it much. Please guide me in implementing a proper way to do this.I hope you agree on what the PR tries to achieve though & I'm looking forward to your comments.