aws / aws-lambda-python-runtime-interface-client

Apache License 2.0
261 stars 74 forks source link

Using the raw fd directly rather than opening the fd pseudo file #56

Closed p4n1c closed 2 years ago

p4n1c commented 3 years ago

Description of changes:

Utilize the fd directly rather than through opening its pseudo file in /proc, with this change it will be more compatible with different types of file descriptor including file descriptors of network sockets, while the old approach is kinda limited to files and pipes.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.