BUG在非阻塞套接字连接? [英] BUG in non-blocking socket connect ?

查看:76
本文介绍了BUG在非阻塞套接字连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




1.在我看来,当使用非阻塞套接字

连接操作时会出现错误,因为LocalEndPoint,RemoteEndPoint虽然客户端和服务器已经连接了
,但是客户端上的Socket

是空值。


2。如果它是一个bug,是否有任何修补程序?


谢谢。

Hi,

1. It seems to me that there is a bug when using non-blocking socket
connect operation, because the LocalEndPoint, RemoteEndPoint of the Socket
are nulls on the client side although that the client and the server are
already connected.

2. If it is a bug, is there any hotfix for this ?

Thanks.

推荐答案

Yaron,


你能展示一段演示bug的代码吗?这听起来好像是我认为套接字正在维护引用,即使你使用的变量

也没有。

-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse .com


" yaron" <亚*** @ discussions.microsoft.com>在留言中写道

新闻:E7 ********************************** @ microsof t.com ...
Yaron,

Can you show a piece of code which demonstrates the bug? It sounds to
me that the socket is maintaining the reference even though the variables
you use are not.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"yaron" <ya***@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...


1.在我看来,使用非阻塞套接字连接操作时有一个bug,因为LocalEndPoint,Socket的RemoteEndPoint
在客户端是空的,虽然客户端和服务器已经连接了。

2.如果是bug,有没有这个的修补程序?

谢谢。
Hi,

1. It seems to me that there is a bug when using non-blocking socket
connect operation, because the LocalEndPoint, RemoteEndPoint of the Socket
are nulls on the client side although that the client and the server are
already connected.

2. If it is a bug, is there any hotfix for this ?

Thanks.



Nicholas,


这里有一个关于这个问题的链接。

http://www.dotnet247.com/247referenc...39/196138.aspx


谢谢。


Nicholas Paldino [.NET / C#MVP]"写道:
Nicholas,

here is a link that talk on this problem.

http://www.dotnet247.com/247referenc...39/196138.aspx

Thanks.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Yaron,

你能展示一段代码来证明这个bug吗?听起来,即使您使用的变量不是,套接字仍在维护引用。

-
- Nicholas Paldino [.NET / C# MVP]
- mv*@spam.guard.caspershouse.com

"亚龙" <亚*** @ discussions.microsoft.com>在消息中写道
新闻:E7 ********************************** @ microsof t.com。 ..
Yaron,

Can you show a piece of code which demonstrates the bug? It sounds to
me that the socket is maintaining the reference even though the variables
you use are not.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"yaron" <ya***@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...


1.在我看来,使用非阻塞套接字
连接操作时有一个bug,因为LocalEndPoint,RemoteEndPoint of虽然客户端和服务器已经连接,但是Socket
在客户端是空的。

2.如果是bug,是否有任何修补程序?

谢谢。
Hi,

1. It seems to me that there is a bug when using non-blocking socket
connect operation, because the LocalEndPoint, RemoteEndPoint of the Socket
are nulls on the client side although that the client and the server are
already connected.

2. If it is a bug, is there any hotfix for this ?

Thanks.




Yaron,

我已经阅读了这个帖子,看来MSFT已经知道了这个错误。

据我所知,目前还没有修补程序。它可能*已经在.NET 2.0中解决了,但你需要查看产品反馈中心



-

- Nicholas Paldino [.NET / C#MVP]

- mv * @ spam .guard.caspershouse.com


" yaron" <亚*** @ discussions.microsoft.com>在消息中写道

新闻:E5 ********************************** @ microsof t.com ...
Yaron,

I''ve read the thread, and it appears that MSFT is aware of the bug.
From what I know, there is no hotfix for this yet. It *might* have been
addressed in .NET 2.0, but you need to check the Product Feedback Center for
that.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"yaron" <ya***@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
Nicholas,

这是一个关于这个问题的链接。

http://www.dotnet247.com/247referenc...39/196138.aspx

谢谢。

Nicholas Paldino [.NET / C#MVP]"写道:
Nicholas,

here is a link that talk on this problem.

http://www.dotnet247.com/247referenc...39/196138.aspx

Thanks.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Yaron,

你能展示一段代码来证明这个bug吗?听起来
我认为即使您使用的变量不是,套接字也会维护引用。

-
- Nicholas Paldino [ .NET / C#MVP]
- mv*@spam.guard.caspershouse.com

yaron <亚*** @ discussions.microsoft.com>在消息中写道
新闻:E7 ********************************** @ microsof t.com。 ..
Yaron,

Can you show a piece of code which demonstrates the bug? It sounds
to
me that the socket is maintaining the reference even though the variables
you use are not.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"yaron" <ya***@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
>
>
> 1.在我看来,使用非阻塞插座时有一个错误
>连接操作,因为LocalEndPoint,RemoteEndPoint的
>插座
>虽然客户端和服务器是
>客户端是null。是
>已连接。
>
> 2.如果是bug,是否有任何修补程序?
>
>谢谢。
>
>
> Hi,
>
> 1. It seems to me that there is a bug when using non-blocking socket
> connect operation, because the LocalEndPoint, RemoteEndPoint of the
> Socket
> are nulls on the client side although that the client and the server
> are
> already connected.
>
> 2. If it is a bug, is there any hotfix for this ?
>
> Thanks.
>
>




这篇关于BUG在非阻塞套接字连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆