GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing github.com — sendfile for sockets neglects pseudo files on Linux · Issue #93300 · python/cpython Closed as not planned Labels type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug report
But Related code Lines 355 to 360 in a637c09
cpython/Lib/asyncio/unix_events.py Lines 361 to 367 in 13c10bf
Example Assuming >>> import asyncio >>> import socket >>> sock = socket.socket(socket.AF_UNIX) >>> loop = asyncio.get_running_loop() >>> await loop.sock_connect(sock, "./some.sock") >>> with open("/proc/cpuinfo", "rb") as cpuinfo_file: ... os.fstat(cpuinfo_file.fileno()).st_size ... await loop.sock_sendfile(sock, cpuinfo_file) ... sock.sendfile(cpuinfo_file) ... len(cpuinfo_file.read()) ... 0 0 0 18294 Activity
MetadataMetadataAssigneesLabelstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |