dansan / springrts_hostlistd Goto Github PK
View Code? Open in Web Editor NEWServes textual list of hosts in springrts lobby
License: GNU General Public License v3.0
Serves textual list of hosts in springrts lobby
License: GNU General Public License v3.0
Currently nothing is returned (only logged) if a communication error (or something else) occurs.
they pile up into the 100s
The lobby-client-thread died today unexpectedly, and thus no updates to the statistics were made. I haven't figured out why it happened, but I think I'll attach some kind of watchdog to it.
It'll also be useful for when the connection gets cut, like in a server restart.
their OPENBATTLE message is of different format than the msg for autohosts?
2015-02-16 23:37:43 DEBUG hostlistd.setup:49 Connetion from xx.xx.xx.xx:yyyyy
2015-02-16 23:37:46 ERROR hostlistd.handle:133 (xx.xx.xx.xx:yyyyy) Unexpected error in thread 'hostlistd-request-xx.xx.xx.xx:yyyyy': 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)
Traceback (most recent call last):
File "/home/daniel/springrts_hostlistd/hostlistd/hostlistd.py", line 121, in handle
csvwriter.writerows([host.as_list() for host in host_list_filtered])
File "/home/daniel/springrts_hostlistd/lobbyclient/models.py", line 61, in as_list
unicode(self.title), unicode(self.gameName),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)
2015-02-16 23:37:46 ERROR hostlistd.handle_error:143 (hostlistd-request-xx.xx.xx.xx:yyyyy) Error on connection from xx.xx.xx.xx:yyyyy, exiting!
Don't end up with
lobbyclient.log_stats:310 users: 000
lobbyclient.log_stats:311 hosts: 00
lobbyclient.log_stats:312 hosts_open: 00
lobbyclient.log_stats:313 hosts_ingame: 00
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.