Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
a58a8202
Commit
a58a8202
authored
Sep 10, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove examples/dns.py
parent
d3fe73da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
examples/dns.py
examples/dns.py
+0
-30
No files found.
examples/dns.py
deleted
100755 → 0
View file @
d3fe73da
#!/usr/bin/env python
import
socket
import
gevent
from
gevent
import
core
from
gevent.socket
import
getaddrinfo
,
getnameinfo
import
traceback
def
test
():
try
:
print
'gevent socket:'
print
getaddrinfo
(
'www.google.com'
,
80
)
print
getnameinfo
((
'17.251.200.70'
,
80
),
0
)
print
getaddrinfo
(
'fake'
,
0
)
except
socket
.
gaierror
,
e
:
traceback
.
print_exc
()
if
not
core
.
HAS_EVDNS
:
print
"*** WARNING: libevent doesn't have evdns support ***"
gevent
.
spawn
(
test
).
join
()
core
.
dns_shutdown
()
print
'stdlib socket:'
try
:
print
socket
.
getaddrinfo
(
'www.google.com'
,
80
)
print
socket
.
getnameinfo
((
'17.251.200.70'
,
80
),
0
)
print
socket
.
getaddrinfo
(
'fake'
,
0
)
except
socket
.
gaierror
,
e
:
traceback
.
print_exc
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment