Skip to content
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

mostly cowboy issues #52

Merged
merged 3 commits into from
Sep 24, 2015
Merged

mostly cowboy issues #52

merged 3 commits into from
Sep 24, 2015

Conversation

danikp
Copy link
Contributor

@danikp danikp commented Sep 23, 2015

  • 'address' setting has been actually ignored for cowboy and server started on all IPs available in any case.
  • ranch accept IP only as tuple, so convert them to such before passing to ranch.
    • allow passing IP as a tuple (for all webservers)
  • start cowboy correctly (fixes problem described in upgrade to Simple Bridge v2 ChicagoBoss/ChicagoBoss#614)

'address' setting has ben actually ignored for cowboy and server started
on all IPs available in any case. Also, ranch accept IP only as tuple,
so convert them to such before passing to ranch.
only once
fixes problem described in ChicagoBoss/ChicagoBoss#614
@choptastic
Copy link
Member

Thanks. Ya know? I used to start cowboy the way you're doing here (eeb327c), but I wanted it running under supervision.

Given that I don't know why cowboy doesn't like being run under this supervision, and that this worked just fine before, I'll merge it in.

Also, thanks for fixing the IP thing, I didn't even realize I was binding all open IPs.

@danikp
Copy link
Contributor Author

danikp commented Sep 23, 2015

It took some time to understand why it drops error ... no match of right hand value {error,eaddrinuse} in ranch_acceptors_sup:init/1 l..., but I guess problem should be at startup and was right.
Also, now it have same behavior as other webservers and I actually don't understand why you decided to make something different for cowboy.

@choptastic
Copy link
Member

I did it like that for both cowboy and for webmachine (
https://github.com/nitrogen/simple_bridge/blob/master/src/webmachine_bridge_modules/webmachine_simple_bridge_sup.erl#L39-L45).
The others all start from their own launch functions that don't mimic the
start_link functionality, and I think long-term, my plan was to try to get
everything under simple_bridge supervision, but I think I just got lazy and
declared it "good enough for now".

-Jesse

On Wed, Sep 23, 2015 at 2:48 PM, Dmitry Polyanovsky <
notifications@github.com> wrote:

It took some time to understand why it drops error ... no match of right
hand value {error,eaddrinuse} in ranch_acceptors_sup:init/1 l..., but I
guess problem should be at startup and was right.
Also, now it have same behavior as other webservers and I actually don't
understand why you decided to make something different for cowboy.


Reply to this email directly or view it on GitHub
#52 (comment)
.

Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

@danikp
Copy link
Contributor Author

danikp commented Sep 23, 2015

ok, understood. I will wait until you decide to merge it (or fix the issue in other way), keeping in mind it's only thing preventing SB upgrade in CB

choptastic added a commit that referenced this pull request Sep 24, 2015
Remove cowboy from simple_bridge supervision. Also fix issues with IPs not allowing tuples.
@choptastic choptastic merged commit 324af24 into nitrogen:master Sep 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants