This repository has been archived by the owner on Apr 13, 2024. It is now read-only.
forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msgq: dont clean up uninitialized sockerts
- Loading branch information
Showing
3 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import time | ||
from messaging_pyx import Context, Poller, SubSocket, PubSocket # pylint: disable=no-name-in-module, import-error | ||
|
||
#21845 | ||
#32767 after closing mmap fd | ||
|
||
if __name__ == "__main__": | ||
c = Context() | ||
pub_sock = PubSocket() | ||
pub_sock.connect(c, "controlsState") | ||
|
||
for i in range(int(1e10)): | ||
print(i) | ||
sub_sock = SubSocket() | ||
sub_sock.connect(c, "controlsState") | ||
|
||
|
||
pub_sock.send(b'a') | ||
print(sub_sock.receive()) |