gpt4 book ai didi

google-app-engine - Appengine 应用程序部署 - 错误 : At least one handler must be provided

转载 作者:数据小太阳 更新时间:2023-10-29 03:11:40 25 4
gpt4 key购买 nike

应用引擎入门。

我的应用没有前端。

它是一个 tcp/udp 套接字服务器。

当我尝试部署时,标题中出现错误。

处理程序是为了什么?它不是网络应用程序。

appengine 是服务器应用的错误谷歌服务吗?

最佳答案

您始终可以添加骨架 Web 处理程序(它可能只返回 404)以使部署实用程序满意。

但请注意,GAE 标准环境沙箱对基于套接字的应用程序非常严格,请参阅 Limitations and restrictions :

Although App Engine supports sockets, there are certain limitations and behaviors you need to be aware of when using sockets :

  • Sockets are available only for paid apps.
  • You cannot create a listen socket; you can only create outbound sockets.
  • FTP is not supported.
  • You can only use TCP or UDP; arbitrary protocols are not allowed.
  • You cannot bind to specific IP addresses or ports.
  • Port 25 (SMTP) is blocked; you can still use authenticated SMTP on the submission port 587.

  • Private, broadcast, multicast, and Google IP ranges (except those whitelisted below), are blocked:

    • Google Public DNS: 8.8.8.8, 8.8.4.4, 2001:4860:4860::8888, 2001:4860:4860::8844 port 53
    • Gmail SMTPS: smtp.gmail.com port 465 and 587
    • Gmail POP3S: pop.gmail.com port 995
    • Gmail IMAPS: imap.gmail.com port 993

      Note: Google Compute Engine IP addresses are not considered to be in Google IP ranges. You can use sockets to connect Google App Engine apps to Google Compute Engine instances.

  • Socket descriptors are associated with the App Engine app that created them and are non-transferable (cannot be used by other apps).

  • Sockets may be reclaimed after 2 minutes of inactivity; any socket operation keeps the socket alive for a further 2 minutes.

如果您的应用无法遵守这些限制,您需要考虑其他替代方案,其中包括灵活的环境 GAE 或 Compute Engine。

关于google-app-engine - Appengine 应用程序部署 - 错误 : At least one handler must be provided,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50085893/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com