disable turbo lib by default

pull/1543/head
chrox 9 years ago
parent caf127fd58
commit c7cac7b333

@ -1 +1 @@
Subproject commit 6edadeb61b0daa85da8ceb4f113f59405eb4333e
Subproject commit cd68f482e00f26402ea8116ef813df08162a39cb

@ -182,6 +182,10 @@ KOBO_SCREEN_SAVER_LAST_BOOK = true -- get screensaver from last book if possible
-- proxy authentication is not supported yet.
NETWORK_PROXY = nil
-- Experimental features
-- Use turbo library to handle async HTTP request
DUSE_TURBO_LIB = false
-- ####################################################################
-- following features are not supported right now
-- ####################################################################

@ -523,7 +523,7 @@ function UIManager:handleInput()
end
function UIManager:initLooper()
if not self.looper and ffi.os ~= "Windows" then
if DUSE_TURBO_LIB and not self.looper then
TURBO_SSL = true
__TURBO_USE_LUASOCKET__ = true
local turbo = require("turbo")

@ -12,6 +12,12 @@ describe("HTTP client module", function()
assert(not res.error, "error occurs")
assert(res.body)
end
setup(function()
DUSE_TURBO_LIB = true
end)
teardown(function()
DUSE_TURBO_LIB = false
end)
local async_client = HTTPClient:new()
it("should get response from async GET request", function()
UIManager:quit()

Loading…
Cancel
Save