<div class="gmail_quote">On Thu, Jun 30, 2011 at 12:06 PM, ken <span dir="ltr"><<a href="mailto:gebser@mousecar.com">gebser@mousecar.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 06/29/2011 07:58 AM ken wrote:<br>
> Trying to update a second CentOS box, I'm getting this error repeatedly:<br>
><br>
> [Errno 4] Socket Error: timed out<br>
><br>
> I'm getting this on every mirror and have gone through the list of<br>
> mirrors more than a dozen times.<br>
><br>
> Oddly, the RPMs I'm trying to upgrade I upgraded just yesterday without<br>
> a problem on another machine on the same LAN with no problems<br>
> whatsoever.  I can ping mirrors fine.<br>
><br>
> There were a spate of these errors back in 2006.  The fix for many was<br>
> to add this line to yum.conf:<br>
><br>
> timeout=300<br>
><br>
> So I did that on the machine where yum is having the problem, but the<br>
> same errors are returned.<br>
><br>
> Anyone else seeing this?  Anyone know what the problem is?<br>
<br>
So I tried using wget to download RPMs from a few mirrors.  I was able<br>
to successfully one whose size is about 5.5M, but the others all stop<br>
downloading around 1M.  Then I tried ftp... same deal.  This might be<br>
the reason for the "socket error" in yum.<br>
<br>
I don't have quotas set on this machine.  selinux is on, but it's been<br>
on for years... why should it start interfering now?  I'm downloading<br>
into /tmp where security settings are standard (user_u:object_r:tmp_t).<br>
<br></blockquote><div><br>Fire up tcpdump/wireshark and record the TCP connection then analyze it with Wireshark and you can check for retransmissions, etc.<br><br>A while ago I had to add the following to my Fedora 13/14 system to download from some sites. <br>
<br>/etc/sysctl.conf:<br>net.ipv4.tcp_timestamps = 0<br></div></div><br>-- <br>Giovanni Tirloni<br>