GithubHelp home page GithubHelp logo

Comments (10)

carlhoerberg avatar carlhoerberg commented on May 30, 2024 1

With this patch amqproxy is waiting at least 5 seconds before an inactive connection is disconnected:
5f1b845

from amqproxy.

artemsheludko1 avatar artemsheludko1 commented on May 30, 2024

@carlhoerberg

from amqproxy.

carlhoerberg avatar carlhoerberg commented on May 30, 2024

would need a tcpdump of that

from amqproxy.

artemsheludko1 avatar artemsheludko1 commented on May 30, 2024

from amqproxy.

artemsheludko1 avatar artemsheludko1 commented on May 30, 2024

from amqproxy.

artemsheludko1 avatar artemsheludko1 commented on May 30, 2024

from amqproxy.

ramunasd avatar ramunasd commented on May 30, 2024

IMHO tcp dump isn't usable at all. Quick googling and I found a quick tutorial how to use tcpdump and capture all packets:
https://danielmiessler.com/study/tcpdump/

So dump everything from relevant port and extract only that part, which drops connection. Put that into file and upload to pastebin or somewhere else. Copy paste does not works as You see :)

from amqproxy.

carlhoerberg avatar carlhoerberg commented on May 30, 2024

yeah, it's the pcap file with full capturing that's interesting, not the log output: tcpdump -i eth0 -s 0 -w output.pcap

from amqproxy.

carlhoerberg avatar carlhoerberg commented on May 30, 2024

The pool is shrunk every 5s:

private def shrink_pool_loop
loop do
sleep 5
@pool.shrink
# print "\r#{@clients.size} clients\t\t #{@pool.size} upstreams"
end
end

def shrink(reason = "Pooled connection closed due to inactivity")
@pools.each_value do |q|
while u = q.shift?
@size -= 1
begin
u.close reason
rescue ex
@log.error "Problem closing upstream: #{ex.inspect}"
end
end
end
end

Maybe the timer should be configurable..

from amqproxy.

artemsheludko1 avatar artemsheludko1 commented on May 30, 2024

With this patch amqproxy is waiting at least 5 seconds before an inactive connection is disconnected:
5f1b845

I will test.

from amqproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.