mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
libcouchbase: 2.10.4 -> 3.1.3
This commit is contained in:
parent
8307e75f80
commit
5e1ad948cf
@ -1,36 +0,0 @@
|
||||
From 58237e64fa77ec5cdec658b3295f71ec899175fa Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Bosch <maximilian@mbosch.me>
|
||||
Date: Sat, 5 Oct 2019 13:47:59 +0200
|
||||
Subject: [PATCH] Fix timeouts in libcouchbase testsuite
|
||||
|
||||
Nix-specific patch. Basically
|
||||
https://github.com/couchbase/libcouchbase/commit/b272f6ab88be523bbcf9d5c4252d07fccb023fe5, but
|
||||
rebased onto 2.10.4.
|
||||
---
|
||||
src/ssl/ssl_e.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/src/ssl/ssl_e.c b/src/ssl/ssl_e.c
|
||||
index f4506cf..734a3e6 100644
|
||||
--- a/src/ssl/ssl_e.c
|
||||
+++ b/src/ssl/ssl_e.c
|
||||
@@ -210,10 +210,16 @@ flush_ssl_data(lcbio_ESSL *es)
|
||||
* calls. While we could have done this inline with the send() call this
|
||||
* would make future optimization more difficult. */
|
||||
GT_WRITE_DONE:
|
||||
+#if !LCB_CAN_OPTIMIZE_SSL_BIO
|
||||
+ BIO_get_mem_ptr(es->wbio, &wmb);
|
||||
+#endif
|
||||
while (wmb->length > (size_t)tmp_len) {
|
||||
char dummy[4096];
|
||||
unsigned to_read = MINIMUM(wmb->length-tmp_len, sizeof dummy);
|
||||
BIO_read(es->wbio, dummy, to_read);
|
||||
+#if !LCB_CAN_OPTIMIZE_SSL_BIO
|
||||
+ BIO_get_mem_ptr(es->wbio, &wmb);
|
||||
+#endif
|
||||
}
|
||||
BIO_clear_retry_flags(es->wbio);
|
||||
return 0;
|
||||
--
|
||||
2.23.0
|
||||
|
@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libcouchbase";
|
||||
version = "2.10.4";
|
||||
version = "3.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "couchbase";
|
||||
repo = "libcouchbase";
|
||||
rev = version;
|
||||
sha256 = "1yfmcx65aqd5l87scha6kmm2s38n85ci3gg0h6qfs16s3jfi6bw7";
|
||||
sha256 = "16mafxkdbns33yjyc2p3j2iajjpyq0zp66wpjir2qj1w3kgggcw8";
|
||||
};
|
||||
|
||||
cmakeFlags = [ "-DLCB_NO_MOCK=ON" ];
|
||||
@ -19,8 +19,6 @@ stdenv.mkDerivation rec {
|
||||
# Running tests in parallel does not work
|
||||
enableParallelChecking = false;
|
||||
|
||||
patches = [ ./0001-Fix-timeouts-in-libcouchbase-testsuite.patch ];
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user