30608 Commits

Author SHA1 Message Date
Kovid Goyal
99c414dc71 Avoid logging exception during shutdown 2015-05-22 22:34:17 +05:30
Kovid Goyal
62d4f0d869 ... 2015-05-22 21:59:59 +05:30
Kovid Goyal
68aabb6394 ... 2015-05-22 21:54:27 +05:30
Kovid Goyal
3967a1ebc1 ... 2015-05-22 21:51:30 +05:30
Kovid Goyal
67484ad5e9 Do not have the server wake up every second just to handle Ctrl-C on windows.
Instead use the windows API to handle it cleanly.
2015-05-22 21:39:11 +05:30
Kovid Goyal
4cbf4540ae Fix closing of socket not sending TCP FIN on windows 2015-05-22 18:50:11 +05:30
Kovid Goyal
f8974e3a4c ... 2015-05-22 17:58:05 +05:30
Kovid Goyal
a02a437b1c Handle byte range with stop > content_length 2015-05-22 17:57:23 +05:30
Kovid Goyal
3d51b47f57 ... 2015-05-22 17:28:07 +05:30
Kovid Goyal
4036e4af7d sendfile() for OS X. Also make sending of files a little more robust against simultaneous file modification 2015-05-22 17:23:27 +05:30
Kovid Goyal
aa478698d2 Remove spurious read 2015-05-22 16:48:57 +05:30
Kovid Goyal
62ace2707f Use sendfile() for added performance on linux 2015-05-22 16:37:45 +05:30
Kovid Goyal
439ddab5e5 Ensure text/* content types always include a charset declaration 2015-05-22 11:52:44 +05:30
Kovid Goyal
03347846d9 Add support for HTTP byte-serving 2015-05-22 11:47:28 +05:30
Kovid Goyal
c03ab24377 Parsing of range header 2015-05-21 17:57:40 +05:30
Kovid Goyal
ae9021d279 ... 2015-05-21 14:31:48 +05:30
Kovid Goyal
c8f1d11e80 Use TCP_CORK to improve throughput for large file transfers 2015-05-21 14:19:09 +05:30
Kovid Goyal
4ffda3300c ... 2015-05-21 14:04:03 +05:30
Kovid Goyal
427781683e Do not flush the socket after writing HTTP headers 2015-05-21 14:01:13 +05:30
Kovid Goyal
3e97ed39bd ... 2015-05-21 13:44:57 +05:30
Kovid Goyal
1f4e6c22dd DOCX Output: Fix incorrect handling of bold/italic in paragraphs where
the majority of text is either bold or italic instead of normal
2015-05-21 13:43:41 +05:30
Kovid Goyal
85bb1dbeec DOCX Input: Handle DOCX files that are missing a settings.xml file, despite it being listed in the manifest 2015-05-21 10:14:51 +05:30
Kovid Goyal
ba2f5db4f0 ... 2015-05-21 10:03:13 +05:30
Kovid Goyal
3782f29839 Get Books: Update the Kobo Store plugin for website changes 2015-05-21 08:50:42 +05:30
Kovid Goyal
d13785ce80 Fix #1456917 [Sort Sharing Books by Email Address Book](https://bugs.launchpad.net/calibre/+bug/1456917) 2015-05-20 14:30:47 +05:30
Kovid Goyal
9efcc69639 Update MTP device list from upstream 2015-05-20 13:49:53 +05:30
Kovid Goyal
d54022b0c0 Test for comma separated header parsing 2015-05-20 12:29:09 +05:30
Kovid Goyal
b4e02f6bc3 Tests for ETag and gzip 2015-05-20 12:26:09 +05:30
Kovid Goyal
8cc8d83a38 Nicer error message when timing out waiting for a chunk 2015-05-20 11:14:11 +05:30
Kovid Goyal
97c59251bb Ignore errors when sending an error response to the client before closing a connection 2015-05-20 10:47:03 +05:30
Kovid Goyal
ea7cac5612 Various minor bug fixes 2015-05-20 10:22:58 +05:30
Kovid Goyal
3c06608acd Tests for POST 2015-05-19 21:34:26 +05:30
Kovid Goyal
cdf9ab1c0e Respond with 201 instead of 200 by default for POST requests 2015-05-19 21:34:16 +05:30
Kovid Goyal
8045fec313 Tests for a basic GET and HTTP pipelining 2015-05-19 17:38:23 +05:30
Kovid Goyal
eee18f4d76 Implement send_headers() for normal HTTP responses 2015-05-19 17:38:10 +05:30
Kovid Goyal
6daed59a8f ... 2015-05-19 17:15:39 +05:30
Kovid Goyal
4495368d9e Dont force the handler to set a status code 2015-05-19 16:53:29 +05:30
Kovid Goyal
0b1084a7b8 Ignore errors when flushing socket during close 2015-05-19 16:32:34 +05:30
Kovid Goyal
1897119a24 Do not send message body when method is HEAD in simple_response
Also improve logging and add first working server test
2015-05-19 16:31:41 +05:30
Kovid Goyal
8952b8251e ... 2015-05-19 16:29:54 +05:30
Kovid Goyal
4cd7ff3968 Infrastructure for testing http server 2015-05-19 15:31:57 +05:30
Kovid Goyal
be2c8a35ee ... 2015-05-19 15:22:23 +05:30
Kovid Goyal
0f6e191bf8 Class to conveniently override some server options
Also, function to create a http_handler from a callable
2015-05-19 13:33:35 +05:30
Kovid Goyal
45b290ad5b Add Date header and support If-None-Match 2015-05-19 13:06:11 +05:30
Kovid Goyal
42dd04b854 ... 2015-05-19 10:29:35 +05:30
Kovid Goyal
3e180d2fba ... 2015-05-19 10:15:47 +05:30
Kovid Goyal
c4fd62e3f6 Update Scientific American 2015-05-19 10:13:56 +05:30
Kovid Goyal
9880ab369b Merge branch 'master' of https://github.com/cbhaley/calibre 2015-05-19 09:56:46 +05:30
Charles Haley
586442ecd3 Addition to commit 9022554d9389a973f8f48d9fede7c93e7ced079f: ensure that startup() initializes is_connected 2015-05-19 06:17:39 +02:00
Kovid Goyal
76692c8115 Env var to control suppression of deprecation warnings 2015-05-19 09:37:21 +05:30