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

Error when client is killed #87

Closed
shanielh opened this issue Jun 29, 2015 · 4 comments
Closed

Error when client is killed #87

shanielh opened this issue Jun 29, 2015 · 4 comments

Comments

@shanielh
Copy link

Hi.

I get this error when one of my clients (I host a WampSharp server) is killed :

2015-06-29 12:43:54,207 [37] ERROR WampSharp.Fleck.FleckWampTextConnection`1[[Ne
wtonsoft.Json.Linq.JToken, Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, Pu
blicKeyToken=30ad4fe6b2a6aeed]] - A connection error occured
System.IO.IOException: Unable to read data from the transport connection: An exi
sting connection was forcibly closed by the remote host. ---> System.Net.Sockets
.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar,
Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchron
ization)

I guess it happens because he's killed, But after I get several of those errors, Non of my published messages (from the server) is received in the client.

This is a log (from chrome) of the frames that the client receive upon connection to the server :

Client :

[1,"default",{"roles":{"caller":{"features":{"caller_identification":true,"progressive_call_results":true}},"callee":{"features":{"progressive_call_results":true}},"publisher":{"features":{"subscriber_blackwhite_listing":true,"publisher_exclusion":true,"publisher_identification":true}},"subscriber":{"features":{"publisher_identification":true}}}}]

Server :

[2,165570129090054,{"roles":{"dealer":{"pattern_based_registration":true,"shared_registration":true,"caller_identification":true,"progressive_call_results":true},"broker":{"features":{"publisher_identification":true,"pattern_based_subscription":true,"publisher_exclusion":true,"subscriber_blackwhite_listing":true}}}}]

Client :

[32,4760414889967616,{},"processes"]
[32,8271242154999808,{},"/processLogs"]
[32,8100974321205248,{},"processes"]

Server does not respond to any of those requests. This is it.

@darkl
Copy link
Member

darkl commented Jun 29, 2015 via email

@shanielh
Copy link
Author

I reproduced with creating many clients and killing them manually :-) 

שני.

On Mon, Jun 29, 2015 at 1:17 PM, Elad Zelingher notifications@github.com
wrote:

Do you know how to reproduce this? Do you have a minimal code snippet or
test steps that reproduce the problem? It can help.
I will be able to check this only next week, meanwhile you might want to
try the vtortola transport (see 1.2.1.6 release notes in wiki), it might
not suffer from this issue.

Elad

Reply to this email directly or view it on GitHub:
#87 (comment)

@darkl
Copy link
Member

darkl commented Jun 29, 2015 via email

@darkl
Copy link
Member

darkl commented Jul 4, 2015

Hi,
I've been working on this, and it should work fine in v1.2.2.9-beta.

Thanks for reporting this.

@darkl darkl closed this as completed Jul 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants