0

这是我的 app.yaml 的相关部分:

handlers:
[...]
- url: /_ah/channel/connected
  servlet: com.[MYAPP].server.channel.ChannelConnected
  name: ChannelConnected
- url: /_ah/channel/disconnected
  servlet: com.[MYAPP].server.channel.ChannelDisconnected
  name: ChannelDisconnected
- url: /*
  filter: com.google.inject.servlet.GuiceFilter
  login: required

[...]

inbound_services:
  - channel_presence

但 App Engine 似乎既不识别 ChannelDisconnected 也不识别 ChannelConnected。开发服务器 (SDK 1.6.1) 的输出:

Jan 18, 2012 1:08:37 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
Warnung: No file found for: /_ah/channel/connected/

和网络日志:

0.1.0.10 - - [18/Jan/2012:05:01:37 -0800] "POST /_ah/channel/connected/ HTTP/1.1" 404 346 - - "[MYID].appspot.com" ms=42 cpu_ms=88 api_cpu_ms=65 cpm_usd=0.002547 instance=00c61b117ce7311fe771ffe792d63bf0a07784
4

2 回答 2

1

在已连接和已断开连接的处理程序的末尾添加反斜杠:

- url: /_ah/channel/connected/
  servlet: com.[MYAPP].server.channel.ChannelConnected
  name: ChannelConnected
- url: /_ah/channel/disconnected/
  servlet: com.[MYAPP].server.channel.ChannelDisconnected
  name: ChannelDisconnected
于 2012-01-18T16:15:32.940 回答
0

在您的 yaml 代码段中,您的入站服务已被注释掉。如果您的实际部署是这种情况,则可能是您的问题的原因。

于 2012-01-18T15:41:54.850 回答