diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-12-17 12:07:28 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-12-17 12:18:43 +0300 |
commit | 48bd5f88777f4dc94fd41a7dd22808ed639b985d (patch) | |
tree | 6a899d7cc8bd632073408198260a93d76f99ef32 /contrib/python/Twisted/py3/twisted/internet/unix.py | |
parent | 3e05dc5f5c47aa8d220db7b5508cfbd4a0d8919f (diff) | |
download | ydb-48bd5f88777f4dc94fd41a7dd22808ed639b985d.tar.gz |
Intermediate changes
commit_hash:3786c4fc65af12274eea45a3ef9de6050e262ac0
Diffstat (limited to 'contrib/python/Twisted/py3/twisted/internet/unix.py')
-rw-r--r-- | contrib/python/Twisted/py3/twisted/internet/unix.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/python/Twisted/py3/twisted/internet/unix.py b/contrib/python/Twisted/py3/twisted/internet/unix.py index c3fe62b22d..b33ef29974 100644 --- a/contrib/python/Twisted/py3/twisted/internet/unix.py +++ b/contrib/python/Twisted/py3/twisted/internet/unix.py @@ -294,6 +294,21 @@ class Server(_SendmsgMixin, tcp.Server): def getPeer(self): return address.UNIXAddress(self.hostname or None) + def getTcpNoDelay(self): + """ + FIXME:https://github.com/twisted/twisted/issues/12369 + + L{twisted.internet.unix.Server} inherits from L{twisted.internet.tcp.Server} which has + this method implemented for TCP. For Unix socket, this is just a NOOP to avoid + errors for the code that calls TCP specicific methods thinking that the Unix transport + is a TCP transport. + """ + return False + + def setTcpNoDelay(self, enabled): + # This is not supported on UNIX sockets and therefore silently ignored. + pass + def _inFilesystemNamespace(path): """ @@ -467,6 +482,21 @@ class Client(_SendmsgMixin, tcp.BaseClient): def getHost(self): return address.UNIXAddress(None) + def getTcpNoDelay(self): + """ + FIXME:https://github.com/twisted/twisted/issues/12369 + + L{twisted.internet.unix.Client} inherits from L{twisted.internet.tcp.Client} which has + this method implemented for TCP. For Unix socket, this is just a NOOP to avoid + errors for the code that calls TCP specicific methods thinking that the Unix transport + is a TCP transport. + """ + return False + + def setTcpNoDelay(self, enabled): + # This is not supported on UNIX sockets and therefore silently ignored. + pass + class Connector(base.BaseConnector): def __init__(self, address, factory, timeout, reactor, checkPID): |