question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose setsockopt in public API

See original GitHub issue

This would be useful for setting up TCP keepalive and TCP_NODELAY flags. Right now the only option is to assume every SocketStream is anyio._networking.SocketStream and obtain raw socket via _socket._raw_socket

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
agronholmcommented, Feb 16, 2019

Fixed in b3832756c1705db93d42c6307ee6749689651f90.

0reactions
agronholmcommented, Feb 15, 2019

It seems that I only tested getsockopt() but forgot about setsockopt(). I will fix this tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BSD Sockets - Zephyr Project Documentation
In Zephyr this function supports a subset of socket options described by POSIX, but also some additional options available in Linux (some ...
Read more >
HOWTO: Using getsockopt() and setsockopt() in Visual Basic
This article demonstrates how to use the Windows Sockets (Winsock) getsockopt and setsockopt functions in Visual Basic to read and set options on...
Read more >
125586 - Socket API doesn't have setsockopt and getsockopt
Issue 125586: Socket API doesn't have setsockopt and getsockopt ... need these methods (they're used but not exposed within Chrome's socket library), ...
Read more >
setsockopt()--Set Socket Options - IBM
Default Public Authority: *USE Threadsafe: Yes. The setsockopt() function is used to set socket options. There are two versions of the API, as...
Read more >
Exposing setSocketOptions for node.js datagram
The issue is that the native node.js dgram class does not expose setsockopt for the socket so I can't change SO_RCVBUF.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found