-
Notifications
You must be signed in to change notification settings - Fork 128
Constant "Output stream end encountered" on server #57
Comments
Any ideas? |
I also get this error, how did you to fix this error?? |
but it works also error... he can't resolve this error, he just reappear the error... Oops... |
I have not found a fix yet. Have you, @SpongeBob-GitHub? |
What version of macOS (OS X), iOS , Xcode , PocketSocket are you using? |
I'm using PocketSocket 1.0.1 to build a macOS app, using the latest SDKs (Xcode 8, macOS 10.12), although this also happened before I upgraded to Sierra (using Xcode 8 but with macOS 10.11). In fact, here's my project and my implementation using PocketSocket. |
@macecchi is AppSandbox enabled for you project? |
Yes, but I think the issue happens with or without App Sandbox, because I only enabled that recently. Does this affect PocketSocket? |
this error just happened with the websocket client more message stream, i fix it with a easy way: only reduce the websocket-client''s connect time, do it just the client. but it isn''t the best way to do this... maybe, u try it with https://github.com/facebook/SocketRocket again. |
@SpongeBob-GitHub What do you mean by "reduce the client's connect time"? The library you pointed won't help, as I'm using PocketSocket as the server, not as the client. |
That is because PSWebSocketDriver writes data to delegate in two orders:
|
I have this problem too(PocketSocket as client) |
@HatemMostafa thanks, but it doesn't work, still the same problem. |
Did anyone ever come up with a solution or workaround for this issue? @ngoctr? |
I meet the same problem, but i don‘t think it is because of PocketSocket. |
I'm currently using PocketSocket to provide a WebSockets server. However, I'm constantly getting errors from the server socket delegate (
- (void)server:server webSocket:(PSWebSocket *)webSocket didFailWithError:(NSError *)error
).The error makes the connection to the client to stop working, but my client does not receive a close/error event, so when the client tries to send something, the socket fails (obviously). If I connect again, it works, but after a while (sometimes seconds, sometimes minutes) I get the same error.
I see from the source code that this error is related to
NSStream
/NSStreamEvent
, but I don't know how to debug this. Can it be related to the client's WebSockets implementation?Here's my server implementation - https://github.com/macecchi/pebble-itunesify-remote/blob/native/osx/iTunesify%20Remote/IFYPocketSocketServer.swift.
Thanks!
The text was updated successfully, but these errors were encountered: