Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operation on non-blocking socket would block #29

Open
pax83 opened this issue Jul 28, 2015 · 18 comments
Open

Operation on non-blocking socket would block #29

pax83 opened this issue Jul 28, 2015 · 18 comments

Comments

@pax83
Copy link

pax83 commented Jul 28, 2015

Is this issue fixed in last version of library? We use last year's version of the library.

@lidgren
Copy link
Owner

lidgren commented Jul 28, 2015

I'm not aware of such an issue currently. Can you describe your problem more thoroughly?

@pax83
Copy link
Author

pax83 commented Jul 28, 2015

Somtimes we receive next warning message:

WarningMessage: Socket exception: System.Net.Sockets.SocketException: Operation on non-blocking socket would block
  at System.Net.Sockets.Socket.ReceiveFrom_nochecks_exc (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags, System.Net.EndPoint& remote_end, Boolean throwOnError, System.Int32& error) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket.ReceiveFrom_nochecks (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags, System.Net.EndPoint& remote_end) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket.ReceiveFrom (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags, System.Net.EndPoint& remoteEP) [0x00000] in <filename unknown>:0 
  at Lidgren.Network.NetPeer.Heartbeat () [0x00000] in <filename unknown>:0 

And many warning messages

WarningMessage: Received unhandled library message Acknowledge from xxx.xxx.xxx.xxx:xxxxx

@pax83
Copy link
Author

pax83 commented Jul 28, 2015

Once we tried to upgrade to the latest version of the library, but the problems become greater. And we rollback it. What is the most stable version of the library?

@AgentFire
Copy link
Contributor

@pax83 please provide a small project which reproduces the issue.

@LinkSpaceGame
Copy link

Error]:Exception:{0}
{1}This platform is not supported at System.Collections.Generic.RBTree..ctor (System.Object hlp) [0x00000] in :0
at System.Net.NetworkInformation.IPGlobalProperties.GetIPGlobalProperties () [0x00000] in :0
at Lidgren.Network.NetUtility.GetNetworkInterface () [0x00000] in :0
at Lidgren.Network.NetUtility.GetBroadcastAddress () [0x00000] in :0
at Lidgren.Network.NetPeerConfiguration..ctor (System.String appIdentifier) [0x00000] in :0
at DashFire.Network.NetworkSystem.Init () [0x00000] in :0
at DashFire.GameControler.InitLogic () [0x00000] in :0
at GameLogic.StartLogic () [0x00000] in :0
at GameLogic+c__Iterator25.MoveNext () [0x00000] in :0

I use the lidgren Mac 5.1.2 unity platform has been a problem

@LinkSpaceGame
Copy link

I use the last version

@LinkSpaceGame
Copy link

help me

@lidgren
Copy link
Owner

lidgren commented Nov 25, 2015

Defined "CONSTRAINED" for your project.

@lidgren
Copy link
Owner

lidgren commented Nov 25, 2015

Hmm... markup screws me... it's underscore, underscore, CONSTRAINED, underscore, underscore

@LinkSpaceGame
Copy link

My platform is ios 9.1
I have modified the "CONSTRAINED" Unity_IOS, but installed to the apple phone Is also an error

@lidgren
Copy link
Owner

lidgren commented Nov 26, 2015

I've never tested the library on IOS; so please post back any fixes and changes necessary you find.

@LinkSpaceGame
Copy link

I have tried PlatformConstrained.cs andPlatformWin32.cs

[Error]:LobbyNetworkSystem.OnError Exception:Operation on non-blocking socket would block
at System.Collections.Generic.RBTree..ctor (System.Object hlp) [0x00000] in :0
at System.Net.Sockets.SocketException..ctor (Int32 error) [0x00000] in :0
at System.Net.Sockets.Socket.EndReceive (IAsyncResult asyncResult, SocketError& errorCode) [0x00000] in :0
at System.Net.Sockets.Socket.EndReceive (IAsyncResult result) [0x00000] in :0
at SuperSocket.ClientEngine.AsyncTcpSession.MyReceiveCallback (IAsyncResult ar) [0x00000] in :0
at System.Net.Sockets.Socket+SocketAsyncResult.Complete () [0x00000] in :0
DashFire.GfxSystem:TickImpl()
DashFire.GfxSystem:Tick()
DashFire.GameControler:TickGame()
GameLogic:Update()

1 similar comment
@LinkSpaceGame
Copy link

I have tried PlatformConstrained.cs andPlatformWin32.cs

[Error]:LobbyNetworkSystem.OnError Exception:Operation on non-blocking socket would block
at System.Collections.Generic.RBTree..ctor (System.Object hlp) [0x00000] in :0
at System.Net.Sockets.SocketException..ctor (Int32 error) [0x00000] in :0
at System.Net.Sockets.Socket.EndReceive (IAsyncResult asyncResult, SocketError& errorCode) [0x00000] in :0
at System.Net.Sockets.Socket.EndReceive (IAsyncResult result) [0x00000] in :0
at SuperSocket.ClientEngine.AsyncTcpSession.MyReceiveCallback (IAsyncResult ar) [0x00000] in :0
at System.Net.Sockets.Socket+SocketAsyncResult.Complete () [0x00000] in :0
DashFire.GfxSystem:TickImpl()
DashFire.GfxSystem:Tick()
DashFire.GameControler:TickGame()
GameLogic:Update()

@LinkSpaceGame
Copy link

Oh,No

@LinkSpaceGame
Copy link

use Xcode 7.1.1
Close BitCode

@LinkSpaceGame
Copy link

help me !haha

@Rombersoft
Copy link

I have this problem after reconecting to server

@woo37830
Copy link

Try setting the command timeout to zero on the query. Worked for me.

        private void ExecuteQuery(string qStr)
        {
            using (SqlConnection cnx = new SqlConnection(_ConnectionString))
            {
                using (SqlCommand cmd = new SqlCommand(qStr, cnx))
                {
                    cmd.Connection.Open();
                    cmd.CommandTimeout = 0;
                    cmd.ExecuteNonQuery();
                }
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants