title: python socket.connect timeout
body: <p>i've got some problem with connecting to irc server. Yesterday code attached below worked fine, but today i got error.</p>
  
  <pre><code>print('Script started')
  network = 'irc.quakenet.org'
  port = 6667
  irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  irc.settimeout(180.0)
  print(irc.gettimeout())
  **irc.connect((network, port))**
  </code></pre>
  
  <p>In the log i get this:</p>
  
  <blockquote>
    <p>Script started
    180.0 Traceback (most recent call last):   File "C:\Users...\TM_bot1\src\connectBot.py", line 66,
    in 
        irc.connect((network, port)) TimeoutError: [WinError 10060] [ErrMsg]</p>
  </blockquote>
  
  <p>In code line which returns error is bolded.</p>
  
  <p>My question is, is it a real issue with server availability? With mIRC agent i've no problems to connect to the same server and port.</p>
  
  <p>**Answears for posted below questions:
  It's not connected to proxy. As mentioned before - yesterday everything was working ok, and since then i haven't changed anything. 
  I get this error before 180 seconds.</p>
  
  <p>Now, after few hours - script is working ok, so it seems to be server overload issue. Is there any way to extend timeout?</p>