Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
9be05656
Commit
9be05656
authored
11 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Plain Diff
Merge branch 'stable'
parents
e7abf898
bedf75fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/evio.cc
+10
-2
10 additions, 2 deletions
src/evio.cc
with
10 additions
and
2 deletions
src/evio.cc
+
10
−
2
View file @
9be05656
...
...
@@ -173,6 +173,12 @@ evio_service_port(struct evio_service *service)
return
ntohs
(
service
->
addr
.
sin_port
);
}
static
inline
const
char
*
evio_service_name
(
struct
evio_service
*
service
)
{
return
service
->
name
;
}
/**
* A callback invoked by libev when acceptor socket is ready.
* Accept the socket, initialize it and pass to the on_accept
...
...
@@ -228,7 +234,8 @@ evio_service_bind_and_listen(struct evio_service *service)
close
(
fd
);
return
-
1
;
}
say_info
(
"bound to port %i"
,
evio_service_port
(
service
));
say_info
(
"bound to %s port %i"
,
evio_service_name
(
service
),
evio_service_port
(
service
));
/* Invoke on_bind callback if it is set. */
if
(
service
->
on_bind
)
...
...
@@ -300,8 +307,9 @@ evio_service_start(struct evio_service *service)
if
(
evio_service_bind_and_listen
(
service
))
{
/* Try again after a delay. */
say_warn
(
"port %i is already in use, will "
say_warn
(
"
%s
port %i is already in use, will "
"retry binding after %lf seconds."
,
evio_service_name
(
service
),
evio_service_port
(
service
),
BIND_RETRY_DELAY
);
ev_timer_set
(
&
service
->
timer
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment