<p><b>@freimair</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/bisq-network/bisq/pull/2939#discussion_r301122280">p2p/src/main/java/bisq/network/p2p/network/Connection.java</a>:</p>
<pre style='color:#555'>> + long elapsed = now - lastSendTimeStamp;
+ if (elapsed < sendMsgThrottleTrigger) {
+ log.debug("We got 2 sendMessage requests in less than {} ms. We set the thread to sleep " +
+ "for {} ms to avoid flooding our peer. lastSendTimeStamp={}, now={}, elapsed={}, networkEnvelope={}",
+ sendMsgThrottleTrigger, sendMsgThrottleSleep, lastSendTimeStamp, now, elapsed,
+ networkEnvelope.getClass().getSimpleName());
+
+ // check if BundleOfEnvelopes is supported
+ if(getCapabilities().containsAll(new Capabilities(Capability.ENVELOPE_OF_ENVELOPES))) {
+ synchronized (lock) {
+ // check if current envelope fits size
+ // - no? create new envelope
+ if(queueOfBundles.isEmpty() || queueOfBundles.element().toProtoNetworkEnvelope().getSerializedSize() + networkEnvelope.toProtoNetworkEnvelope().getSerializedSize() > MAX_PERMITTED_MESSAGE_SIZE * 0.9) {
+ // - no? create a bucket
+ queueOfBundles.add(new BundleOfEnvelopes());
+ System.err.println("added fresh container");
</pre>
<p>well :). PR updated.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/2939?email_source=notifications&email_token=AJFFTNT47ITEAMDIV634QETP6NE2PA5CNFSM4H6TK222YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5XRMKI#discussion_r301122280">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNUK7BXGUJFXPW7UOJLP6NE2PANCNFSM4H6TK22Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/AJFFTNUXKATCQMKLYNN5SPDP6NE2PA5CNFSM4H6TK222YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5XRMKI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/2939?email_source=notifications\u0026email_token=AJFFTNT47ITEAMDIV634QETP6NE2PA5CNFSM4H6TK222YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5XRMKI#discussion_r301122280",
"url": "https://github.com/bisq-network/bisq/pull/2939?email_source=notifications\u0026email_token=AJFFTNT47ITEAMDIV634QETP6NE2PA5CNFSM4H6TK222YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB5XRMKI#discussion_r301122280",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>