{"shas":[["ff453656435e7ece046ba202e3ba6a24c8c7e7bc","f29ad1c43d6e24ab863bcf5eb886cdeef200167f@gmail.com","Elaborate on the idea of http server and child server\n\nThis patch extends the http/server.py model so that, given an http\nserver, it is possible to take another http server and redirect all\nthe requests beginning to a given prefix to this second server.\n\nBefore this patch this was possible for got_request() only while now\nthis is possible for got_request_headers() too.  This is very very\nimportant for us, because it allows to host the whole speedtest server\nas a child of another server.\n\nThe result is that now it is simpler to launch and test a server\nfrom http/server.py.\n\nAnother notable change performed by this patch is that now we use\nthe configuration object that ships with every stream handler, hence\nto each server, to configure the behavior.  This is important for\nat least two reasons.\n\nFirst we will use a key-value store bound to the configuration\ndatabase, in the future, instead of a plain dict and this will make\nit possible to adjust the configuration on the fly.\n\nSecond because, leveraging the get() method of dicts, we are now\nable to always provide defaults.  This is very valuable when we load\na server from http/server.py, without passing for the module object\nand setting up the configuration properly.\n\nThe last change performed by this patch is that it rolls out the\nmuch awaited new speedtest server, that should allow measurements\nto take 'exactly N seconds'.  This is very important.\n\nAll of this is implemented in the same patch because I noticed that\nthe result is readable, so it seems ok to roll out the set of changes\ninstead of splitting the work in a serie of patches, i.e. there is\nstill a good signal/noise ratio.","Simone Basso"]],"repo":"neubot/neubot","actor":"neubot","ref":"refs/heads/next","size":1,"head":"ff453656435e7ece046ba202e3ba6a24c8c7e7bc","actor_gravatar":"c2242b0271b3d5e1d15245e2fb132754","push_id":28237532}