er0
er0

Reputation: 1834

App engine channel successfully created but unusable

I have been getting an intermittent problem using the App Engine channel API. For the most, maybe 90% of the time, everything works fine. But the remaining 10% of the time I get a channel that is unusable. Having looked at this code for months, I strongly believe that this problem is not due to a logical error. By unusable channel I mean that even though the client connects to it successfully, the server is not able to message it. Most of the operations involved on the client and server complete successfully:

The one thing that doesn't succeed is the calling of /_ah/channel/connected for these defective channels. I've tried dozens of possible workarounds without success. Right now I deal with the problem by gracefully retrying till I succeed, but it would be really nice for it to work without these tricks.

Upvotes: 1

Views: 130

Answers (2)

Rafael Sanches
Rafael Sanches

Reputation: 1823

It seems that they fixed a leak in the channels APi in the last release 1.8.2: https://code.google.com/p/googleappengine/issues/detail?id=9283 https://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes

Upvotes: 0

user784435
user784435

Reputation:

I havent seen any code but from what you are saying could it be related to

Intermittent error code 400, description “” on client connecting to channel

I am using a kind of brute force loop messaging to all client sockets (even if they have been closed, its a bit redundant but the overhead seems low ) and haven't picked up any problems yet (I also havent tested it that well either)

Upvotes: 1

Related Questions