Re: [ovs-dev] [PATCH 1/2] ovs python: ovs.stream.open_block() returns success even if the remote is unreachable

2018-08-07 Thread Numan Siddique
On Sat, Aug 4, 2018 at 3:20 AM Ben Pfaff wrote: > On Thu, Jul 12, 2018 at 01:37:33AM +0530, Numan Siddique wrote: > > On Wed, Jul 11, 2018 at 10:26 PM Ben Pfaff wrote: > > > > > On Wed, Jul 11, 2018 at 12:37:28PM +0530, Numan Siddique wrote: > > > > On Wed, Jul 11, 2018 at 2:08 AM Ben Pfaff

Re: [ovs-dev] [PATCH 1/2] ovs python: ovs.stream.open_block() returns success even if the remote is unreachable

2018-08-03 Thread Ben Pfaff
On Thu, Jul 12, 2018 at 01:37:33AM +0530, Numan Siddique wrote: > On Wed, Jul 11, 2018 at 10:26 PM Ben Pfaff wrote: > > > On Wed, Jul 11, 2018 at 12:37:28PM +0530, Numan Siddique wrote: > > > On Wed, Jul 11, 2018 at 2:08 AM Ben Pfaff wrote: > > > > > > > On Wed, Jul 11, 2018 at 12:56:39AM

Re: [ovs-dev] [PATCH 1/2] ovs python: ovs.stream.open_block() returns success even if the remote is unreachable

2018-07-11 Thread Numan Siddique
On Wed, Jul 11, 2018 at 10:26 PM Ben Pfaff wrote: > On Wed, Jul 11, 2018 at 12:37:28PM +0530, Numan Siddique wrote: > > On Wed, Jul 11, 2018 at 2:08 AM Ben Pfaff wrote: > > > > > On Wed, Jul 11, 2018 at 12:56:39AM +0530, nusid...@redhat.com wrote: > > > > From: Numan Siddique > > > > > > > >

Re: [ovs-dev] [PATCH 1/2] ovs python: ovs.stream.open_block() returns success even if the remote is unreachable

2018-07-11 Thread Ben Pfaff
On Wed, Jul 11, 2018 at 12:37:28PM +0530, Numan Siddique wrote: > On Wed, Jul 11, 2018 at 2:08 AM Ben Pfaff wrote: > > > On Wed, Jul 11, 2018 at 12:56:39AM +0530, nusid...@redhat.com wrote: > > > From: Numan Siddique > > > > > > The python function ovs.socket_util.check_connection_completion()

Re: [ovs-dev] [PATCH 1/2] ovs python: ovs.stream.open_block() returns success even if the remote is unreachable

2018-07-11 Thread Numan Siddique
On Wed, Jul 11, 2018 at 2:08 AM Ben Pfaff wrote: > On Wed, Jul 11, 2018 at 12:56:39AM +0530, nusid...@redhat.com wrote: > > From: Numan Siddique > > > > The python function ovs.socket_util.check_connection_completion() uses > select() > > (provided by python) to monitor the socket file

Re: [ovs-dev] [PATCH 1/2] ovs python: ovs.stream.open_block() returns success even if the remote is unreachable

2018-07-10 Thread Ben Pfaff
On Wed, Jul 11, 2018 at 12:56:39AM +0530, nusid...@redhat.com wrote: > From: Numan Siddique > > The python function ovs.socket_util.check_connection_completion() uses > select() > (provided by python) to monitor the socket file descriptor. The select() > returns 1 when the file descriptor

[ovs-dev] [PATCH 1/2] ovs python: ovs.stream.open_block() returns success even if the remote is unreachable

2018-07-10 Thread nusiddiq
From: Numan Siddique The python function ovs.socket_util.check_connection_completion() uses select() (provided by python) to monitor the socket file descriptor. The select() returns 1 when the file descriptor becomes ready. For error cases like - 111 (Connection refused) and 113 (No route to

[ovs-dev] [PATCH 1/2] ovs python: ovs.stream.open_block() returns success even if the remote is unreachable

2018-07-08 Thread nusiddiq
From: Numan Siddique Calling ovs.stream.open_block(ovs.stream.open("tcp:127.0.0.1:6641")) returns success even if there is no server listening on 6641. To check if the connection is established or not, Stream class makes use of ovs.socket_util.check_connection_completion(). This function