From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 9981C6EC55; Fri, 9 Jul 2021 13:41:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9981C6EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1625827314; bh=cKwkbLiyj+D93k7WoiPArTzqLYF9EJOd07B6GQxgnnI=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=bgTzhwC/gmMEiaVnaptL64ROeG5Rb+EndjZVfIjl0ekyEO0RPZ+jCSpUK1bI8uWIX BYtIUKxECEKwLQtxeLHHwwF+Pv/T81xIV/qx+50UIKhvmxDC0KTYoJATzLbsBb1e/y sb76fY9qBhlV6vWFBvDRMb91Hbosu9zESTMGzJME= Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id C94416EC55 for ; Fri, 9 Jul 2021 13:41:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C94416EC55 Received: by mail-lj1-f175.google.com with SMTP id t30so7332044ljo.5 for ; Fri, 09 Jul 2021 03:41:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=I6fE83BQpuJRCmDK2RbBgiF2xZoWEeSulamK5lbiZNg=; b=sSLPFs21/mB03wqBkSVSQJKOfsPwGssPp0OY4KUvkTAfjXeveQ+kFdrP+uYVa2K7Ex ACQ/SUzXDH5B5qY+n96BhU7UHLTPP5NFoPVEc3ErVbFuoBDVuMMQBzGGObwiPDtvSUxv QrS0KhkuVKBlMPdxihVXijj2sGyMVIhn4gz3DhbKAC4AOSOlPs27ega5bCbHRp1npUK9 srPdlAkeoTt8bqlkNModom78tVk2gBkCN2YCYosKhoPdcex0ZGMaFaDn41JhP+ogVMgS KETpueifTyLYu/9W2aSho0sMIL2yKrCkpu8+KOA7O5LsZWpSYILbtSPc+XiXWNCUXlYM /6eA== X-Gm-Message-State: AOAM5311hkW/w/cHzlaqDzAyQR2pkSv2joT68dda8dmFnriyQpv/gP3h HWl8OaXooZ4WDk0uWSU2T/3cl8r6SDqTyw== X-Google-Smtp-Source: ABdhPJxmtyDV1JKN/SlUBgcTenLinTLu3KaiPdbcfG3X6HzUWt8WSYoVYnwU74Nfj7QDvlphlk3AUw== X-Received: by 2002:a05:651c:504:: with SMTP id o4mr28311964ljp.357.1625827312673; Fri, 09 Jul 2021 03:41:52 -0700 (PDT) Received: from grain.localdomain ([5.18.199.94]) by smtp.gmail.com with ESMTPSA id s14sm433255lfr.309.2021.07.09.03.41.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 03:41:51 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 3CC9A5A001E; Fri, 9 Jul 2021 13:41:51 +0300 (MSK) Date: Fri, 9 Jul 2021 13:41:51 +0300 To: Serge Petrenko Cc: v.shpilevoy@tarantool.org, tarantool-patches@dev.tarantool.org Message-ID: References: <20210709074048.18169-1-sergepetrenko@tarantool.org> <7d4e959e-baab-85ff-488d-d1dbfd5e80a5@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d4e959e-baab-85ff-488d-d1dbfd5e80a5@tarantool.org> User-Agent: Mutt/2.0.7 (2021-05-04) Subject: Re: [Tarantool-patches] [PATCH] replication: stop pushing TimedOut error to the replica X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" On Fri, Jul 09, 2021 at 11:30:20AM +0300, Serge Petrenko wrote: > > Thanks! No problem, will rework. > It might be better to not allocate any string at all. > I can simply allocate the needed buffer on the region (where the msgpack > will be encoded), and encode the string header, and leave the > buffer with whatever contents it has (it'll probably be filled > with 0x50 bytes, it's the slab poison symbol). Cool, good idea!