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

In a bind #124

Merged
merged 5 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only bind to the default port if not binds are specified
  • Loading branch information
ohler55 committed Oct 4, 2023
commit 7f8d5b3bce3eda87b11c8d53ddcb869054f751b3
2 changes: 1 addition & 1 deletion bin/agoo
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ else
end

if @run_file.nil?
@port = 6464 if 0 == @port
@port = 6464 if 0 == @port && @binds.empty?
Agoo::Log.configure(dir: @log_dir,
console: @console,
classic: @classic,
Expand Down
4 changes: 2 additions & 2 deletions ext/agoo/bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ agoo_bind_url(agooErr err, const char *url) {
return url_tcp6(err, url + slen + 3, scheme);
}
return url_tcp(err, url + slen + 3, scheme);
}
return url_tcp(err, url, scheme);
}
return url_tcp(err, url, "http");
}
return NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion ext/agoo/rserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ rserver_start(VALUE self) {
if (agoo_server.loop_cnt + 1 + agoo_server.thread_cnt <= (long)atomic_load(&agoo_server.running)) {
break;
}
dsleep(0.05);
dsleep(0.05);
}
}
return Qnil;
Expand Down