seattletestbed / geoip_server Goto Github PK
View Code? Open in Web Editor NEWResolve IP addresses to geo coordinates (not including database)
License: MIT License
Resolve IP addresses to geo coordinates (not including database)
License: MIT License
Let's migrate this to another name. Something like seattlegeoip.poly.edu. This way we can migrate it to another host / VM if desired.
We need to change the code to use the new host name and get the DNS entry set up.
Using library geoip_client.repy, calls to geoip_record_by_addr() (and geoip_record_by_name()) get connection refused error intermittently:
111 Connection refused
The two geoip servers used are http://geoipserver.poly.edu:12679, http://geoipserver2.poly.edu:12679
However, sometimes they do respond to geoip requests.
The geoipserver is prone to hangs, and the logging it provides isn't adequate to debug the problem.
From a recent hiccup that left the server hanging intermittently (until I ^C
'd one of the threads and thus unblock it):
119.154.168.130 - - [07/Nov/2014 00:19:26] "POST / HTTP/1.0" 200 -
----------------------------------------
Exception happened during processing of request from ('119.154.168.130', 60918)
Traceback (most recent call last):
File "/usr/lib/python2.5/SocketServer.py", line 222, in handle_request
File "/usr/lib/python2.5/SocketServer.py", line 241, in process_request
File "/usr/lib/python2.5/SocketServer.py", line 254, in finish_request
File "/usr/lib/python2.5/SocketServer.py", line 522, in __init__
File "/usr/lib/python2.5/BaseHTTPServer.py", line 316, in handle
File "/usr/lib/python2.5/BaseHTTPServer.py", line 299, in handle_one_request
File "/usr/lib/python2.5/socket.py", line 346, in readline
KeyboardInterrupt
Also,
blackbox.poly.edu - - [08/Dec/2014 02:50:06] "POST / HTTP/1.0" 200 -
----------------------------------------
Exception happened during processing of request from ('128.238.63.50', 58718)
Traceback (most recent call last):
File "/usr/lib/python2.5/SocketServer.py", line 222, in handle_request
File "/usr/lib/python2.5/SocketServer.py", line 241, in process_request
File "/usr/lib/python2.5/SocketServer.py", line 254, in finish_request
File "/usr/lib/python2.5/SocketServer.py", line 522, in __init__
File "/usr/lib/python2.5/BaseHTTPServer.py", line 316, in handle
File "/usr/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
File "/usr/lib/python2.5/SimpleXMLRPCServer.py", line 477, in do_POST
File "/usr/lib/python2.5/BaseHTTPServer.py", line 368, in send_response
File "/usr/lib/python2.5/socket.py", line 262, in write
File "/usr/lib/python2.5/socket.py", line 249, in flush
error: (32, 'Broken pipe')
Thanks @us341 for debugging support.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.