Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'url:pipermail': 0.05; 'socket': 0.07; 'subject:query': 0.07; 'idea?': 0.09; 'option,': 0.09; 'cc:addr:python-list': 0.11; '24,': 0.16; 'bind': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'issue?': 0.16; 'messy': 0.16; 'normally,': 0.16; 'subject:python': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'all,': 0.19; 'help.': 0.21; 'cc:addr:python.org': 0.22; 'port.': 0.24; 'specify': 0.24; 'cc:2**0': 0.24; 'switch': 0.26; 'post': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'dec': 0.30; 'list:': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'work.': 0.31; 'lines': 0.31; 'workaround': 0.31; 'figure': 0.32; 'thanks!': 0.32; 'url:python': 0.33; 'addresses': 0.33; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'really': 0.36; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'server': 0.38; 'pm,': 0.38; 'mailing': 0.39; 'url:mail': 0.40; 'how': 0.40; 'even': 0.60; 'blank': 0.60; 'groups.': 0.74; 'end.': 0.84; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=yaS9u3Hy077SzSOaGhwm4qRHc3v3eyiTirIk1mWcYTY=; b=xIuCqoW+7AWJP5IPPQccLJwDSx9Wq4JrK3X3FWCm3rHXorHH/RWbkegx77YbaSzBey ZDgY/E+KCOX4q/ja9C4V/nt6FzcI9bZ9Z6lyi2nyHAAHAp1WF77KWs0MLBzodukAQuJK kmxHvlEa23AiRg7YybWbGOuJfMuu7RY0UO1GXjSt0Vvynadhyp6MIYI53Cyz839ebjhs OP+SUJe2XpHQXA136LyMFeVQAqzCaYBYpGroXz1iFXp8DxQHmYALpXN08YiuYuAEgKC4 +gOpcqidHc+mjLAaJVSH/yJ5MbE9XKrAJR1+nacLutYoNyAopOIs9fTpF8t4JNGoH0YV euPg== MIME-Version: 1.0 X-Received: by 10.68.108.194 with SMTP id hm2mr30226568pbb.22.1387857292726; Mon, 23 Dec 2013 19:54:52 -0800 (PST) In-Reply-To: References: <3cea84e7-bfd5-4feb-b786-96a3501ffcf4@googlegroups.com> Date: Tue, 24 Dec 2013 14:54:52 +1100 Subject: Re: python socket query From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387857301 news.xs4all.nl 2903 [2001:888:2000:d::a6]:55379 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62666 On Tue, Dec 24, 2013 at 2:33 PM, wrote: > Thanks Chris.I have put bind call but it did not work. > Even telnet hangs if i tried to connect to the same IP and port manually. Is there a workaround to fix this issue? > > If the socket gets closed at the other end. How can we get around with the issue? Any idea? Normally, bind isn't necessary for client connections. It's almost never significant, unless you have multiple IP addresses or you actually need to specify the port. If telnet hangs, you need to figure out what your server is doing. Without knowing the server at all, I can't really help. But please, have a look at how your post comes out: https://mail.python.org/pipermail/python-list/2013-December/663308.html All those messy blank lines are because of Google Groups. There are other problems, as well. Please, can you switch to a better client, so we don't have to wade through that mess? Mozilla Thunderbird is one good option, or you can join the mailing list: https://mail.python.org/mailman/listinfo/python-list Thanks! ChrisA