Is the Sockets API Disabled?

The channel API is deprecated and rejected , which I find very discouraging.

The socket API (and has been for most of the decade) in beta with policy:

This is a beta version of the Sockets API. This API does not apply to SLAs or deprecation policies and is subject to change on the reverse side.

It's amazing that the Sockets API version for the demo version of Python does not include import socket- it just uses the channel API , so this is the question:

Since the official Sockets API demo uses only the channel API (which is rejected), does this mean that the socket API is also rejected, but not claimed as such due to the lack of an obsolete policy?

+6
source share
1 answer

API Socket documentation that was updated March 22, 2017 , indicates that now you have to use import socket.

The demo project you are linking to is older than 4 years.

Since this is just an old demo referring to the channel API, you can be sure that the Socket API will not expire because of this.

Source: https://cloud.google.com/appengine/docs/standard/python/sockets/

In addition, as far as I know, demonstration projects are only informative.

+3
source

Source: https://habr.com/ru/post/1016448/


All Articles