(sock)
| 192 | |
| 193 | if hasattr(socket, 'TCP_NODELAY'): |
| 194 | def _set_nodelay(sock): |
| 195 | if (sock.family in {socket.AF_INET, socket.AF_INET6} and |
| 196 | sock.type == socket.SOCK_STREAM and |
| 197 | sock.proto == socket.IPPROTO_TCP): |
| 198 | sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) |
| 199 | else: |
| 200 | def _set_nodelay(sock): |
| 201 | pass |
nothing calls this directly
no test coverage detected
searching dependent graphs…