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
1ea5f565
Commit
1ea5f565
authored
12 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into coio-fiber-detach
parents
dde1648e
6d07d1c0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/coeio.m
+14
-2
14 additions, 2 deletions
src/coeio.m
with
14 additions
and
2 deletions
src/coeio.m
+
14
−
2
View file @
1ea5f565
...
@@ -218,9 +218,21 @@ getaddrinfo_cb(va_list ap)
...
@@ -218,9 +218,21 @@ getaddrinfo_cb(va_list ap)
{
{
const char *host = va_arg(ap, const char *);
const char *host = va_arg(ap, const char *);
const char *port = va_arg(ap, const char *)
;
const char *port = va_arg(ap, const char *)
;
const
struct
addrinfo
*
hints
=
va
_
arg
(
ap
,
const
struct
addrinfo
*
)
;
struct
addrinfo
*
hints
=
va
_
arg
(
ap
,
struct
addrinfo
*
)
;
struct
addrinfo
**
res
=
va
_
arg
(
ap
,
struct
addrinfo
**
)
;
struct
addrinfo
**
res
=
va
_
arg
(
ap
,
struct
addrinfo
**
)
;
if
(
getaddrinfo
(
host
,
port
,
hints
,
res
))
{
int
rc
=
getaddrinfo
(
host
,
port
,
hints
,
res
)
;
/*
getaddrinfo
can
return
EAI
_
ADDRFAMILY
on
attempt
*
to
resolve
::
1
,
if
machine
has
no
public
ipv6
addresses
*
configured
.
Retry
without
AI
_
ADDRCONFIG
flag
set
.
*
*
See
for
details
:
https
://
bugs
.
launchpad
.
net
/
tarantool
/+
bug
/
1160877
*/
if
(
rc
==
EAI
_
ADDRFAMILY
||
rc
==
EAI
_
BADFLAGS
)
{
hints
->
ai
_
flags
&=
~
AI
_
ADDRCONFIG
;
rc
=
getaddrinfo
(
host
,
port
,
hints
,
res
)
;
}
if
(
rc
)
{
errno
=
ERESOLVE
;
errno
=
ERESOLVE
;
return
-
1
;
return
-
1
;
}
}
...
...
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