30532 Commits

Author SHA1 Message Date
Kovid Goyal
3e27e0da0f Micro optimizations 2015-05-26 07:56:54 +05:30
Kovid Goyal
d4ad8086d2 ... 2015-05-26 07:41:20 +05:30
Kovid Goyal
d6eeddbb79 ... 2015-05-26 07:37:49 +05:30
Kovid Goyal
a43fdc9871 Small further optimization for readline() 2015-05-26 07:33:25 +05:30
Kovid Goyal
d5d638dd9b Speed up readline() by using a user-space ring buffer 2015-05-26 07:22:45 +05:30
Kovid Goyal
5b870afd51 ... 2015-05-26 01:51:59 +05:30
Kovid Goyal
38f4a2aa69 ... 2015-05-25 22:19:54 +05:30
Kovid Goyal
51b8281151 Improve performance of sending of large files when sendfile() is not available (such as on windows)
Use the kernel socket send buffer size as the blocksize for sends.
2015-05-25 22:02:22 +05:30
Kovid Goyal
eb72da611d ... 2015-05-25 21:01:06 +05:30
Kovid Goyal
aa4c31ef75 ... 2015-05-25 20:31:52 +05:30
Kovid Goyal
61120fa2b1 ... 2015-05-25 20:22:25 +05:30
Kovid Goyal
d075eff758 Finish implementation of async http server 2015-05-25 18:37:20 +05:30
Kovid Goyal
2068e52b82 Update regex engine to latest (2.4.61) 2015-05-25 09:55:10 +05:30
Kovid Goyal
2484ed7b61 Fix guessed mime type for js files 2015-05-24 18:32:46 +05:30
Kovid Goyal
5c918cc84a Use SOMAXCONN insteaad of 5 for listen() 2015-05-23 19:25:17 +05:30
Kovid Goyal
0cba5968c2 ... 2015-05-23 19:16:14 +05:30
Kovid Goyal
a514dc4fd7 ... 2015-05-23 19:13:37 +05:30
Kovid Goyal
70f23a4c76 ... 2015-05-23 19:11:47 +05:30
Kovid Goyal
d48b968cb9 Start work on async version of HTTP server 2015-05-23 19:11:23 +05:30
Kovid Goyal
eb0aa151fb ... 2015-05-23 12:22:08 +05:30
Kovid Goyal
ec3692fec4 Decouple server loop from http completely 2015-05-23 09:16:01 +05:30
Kovid Goyal
28aee5acbb socketpair() implementation for windows 2015-05-23 08:54:05 +05:30
Kovid Goyal
ea36277c99 Send Keep-Alive header 2015-05-23 08:07:11 +05:30
Kovid Goyal
886323b52f Add a "Retry" button to the news download failed error message. Fixes #1458076 [Add 'Retry' button to failed news fetch jobs](https://bugs.launchpad.net/calibre/+bug/1458076) 2015-05-23 07:35:35 +05:30
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