Commit graph

30 commits

Author SHA1 Message Date
Juhani Haverinen
b10d070701 Add blacklist feature 2016-08-05 16:18:33 +03:00
Juhani Haverinen
3adb47efde Do SO_REUSEADDR 2016-08-03 01:19:08 +03:00
Juhani Haverinen
11754b56e3 Change default port as we replace gophersrv 2016-08-03 01:14:58 +03:00
Juhani Haverinen
3b353910f1 Add CGI support back 2016-08-03 01:13:45 +03:00
Juhani Haverinen
59f8fac26f Add preliminary support for opening files 2016-08-02 21:30:34 +03:00
Juhani Haverinen
0ffdc0ad6d Send textual data encoded correctly 2016-08-02 20:49:47 +03:00
Juhani Haverinen
851f3e9647 Respond with appropriate headers 2016-08-02 20:09:01 +03:00
Juhani Haverinen
a1b7b3bb7f Actually pass the rest field from get_request 2016-08-02 14:53:42 +03:00
Juhani Haverinen
d3cfc5601e Add building of full path, finding mime type 2016-08-02 05:49:25 +03:00
Juhani Haverinen
568b650acd Make SocketReader return its buffer when told to exit 2016-08-02 03:34:15 +03:00
Juhani Haverinen
c14310a010 Add .gitignore 2016-08-02 03:29:29 +03:00
Juhani Haverinen
1ddaaf5bf0 Rehaul request reading, add preliminary support for Gopher+ 2016-08-02 03:27:38 +03:00
Juhani Haverinen
cf66f1eee2 Add path normalization 2016-08-02 01:33:02 +03:00
Juhani Haverinen
a7c9f89581 Create OneArgumentException to make creating exceptions less boilerplatey 2016-08-02 01:14:19 +03:00
Juhani Haverinen
0e1cb2952d Remove last globals, be actually re-entrant 2016-08-02 00:30:46 +03:00
Juhani Haverinen
dbcd1ee014 standardize "->" → "→" 2016-08-02 00:20:19 +03:00
Juhani Haverinen
cd65323626 Make neomi usable as a library by running listen(default_config) only if not imported 2016-08-02 00:04:50 +03:00
Juhani Haverinen
d52af89cb1 Pass config explicitly, change listen to take config instead of port 2016-08-02 00:03:51 +03:00
Juhani Haverinen
a1b33985d3 Use enum.Enum 2016-08-01 21:04:32 +03:00
Juhani Haverinen
bf9877fc1f Tiny bugfix for HTTP parsing 2016-07-12 18:02:36 +03:00
Juhani Haverinen
4ce118f670 Make worker thread dying log the address 2016-07-12 17:45:55 +03:00
Juhani Haverinen
702584c2e3 Fix sock -> conn 2016-07-12 17:42:36 +03:00
Juhani Haverinen
3fb2e26983 Minor performance tweak 2016-07-12 17:40:24 +03:00
Juhani Haverinen
1cbd861e61 Fix typos 2016-07-12 17:38:53 +03:00
Juhani Haverinen
9548eab439 Some anti-DOS protection 2016-07-12 17:36:57 +03:00
Juhani Haverinen
841f7025da Uncomment error handling block commented for debug 2016-07-12 17:23:58 +03:00
Juhani Haverinen
9e8ab99c22 Fix coding style issues and typos 2016-07-12 17:23:23 +03:00
Juhani Haverinen
4b35a63562 Only attempt to set IPV6_V6ONLY for IPv6 sockets 2016-07-12 17:16:21 +03:00
Juhani Haverinen
720f69e888 Add newline to the debug response 2016-07-12 17:14:01 +03:00
Juhani Haverinen
dbc7f824ed First commit 2016-07-12 17:11:58 +03:00