This is our old Q&A Site. Please post any new questions and answers at


Some tcp connections hang sometimes and I can't find the problem. When Maven is downloading libraries from maven repo, sometimes it blocks in one of the downloads, making the entire build hang. It is difficult to reproduce as it only happens rarely, but I was able to capture it on wireshark (with tshark).

This is the end of the build output:

[INFO] Unable to find resource 'org.apache.maven.doxia:doxia-module-xhtml:jar:1.0' in repository (
28K downloaded  (maven-invoker-2.0.11.jar)
[INFO] Unable to find resource 'org.apache.maven.doxia:doxia-module-xhtml:jar:1.0' in repository (
21K downloaded  (doxia-module-xhtml-1.0.jar)

It hangs here. It is in this state for some days without progress. With ss, I can see the problematic connection:

ESTAB   0    0    ::ffff: ::ffff:  
cubic wscale:0,7 rto:216 rtt:16/8 ato:40 cwnd:10 send 7.3Mbps rcv_rtt:16 rcv_space:37960

Now the wireshark output. I stopped capturing after a while - I know I should have continued.

Thanks for any hints!

asked 22 Apr '13, 01:28

dmeneses's gravatar image

accept rate: 0%

From a first glance at the tracefile, it looks like host is overloaded. Look at the time gaps between frames 94 and 95 and also between frames 114 and 115. Your client has acknowledged all data, still the server takes a long time to send new data. What is keeping it?

It might be on purpose to throttle bandwidth, although I would have expected a more granular control in that case. Or maybe there is a proxy in between that downloads chunks and then quickly passes the data down to you?

permanent link

answered 22 Apr '13, 01:57

SYN-bit's gravatar image

SYN-bit ♦♦
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 22 Apr '13, 01:28

question was seen: 3,062 times

last updated: 22 Apr '13, 01:57

p​o​w​e​r​e​d by O​S​Q​A