aboutsummaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
authorJames Fish <[email protected]>2013-04-02 00:49:07 +0100
committerJames Fish <[email protected]>2013-08-16 18:44:24 +0100
commitca6817880ee5592cf890fb5a71da41f52818d29a (patch)
tree79a0bb2b006fab3e1b23d267c0eb06633c37c015 /erlang.mk
parentc767739ee3e917c9ce3c67827e655f10d6c191f9 (diff)
downloadranch-ca6817880ee5592cf890fb5a71da41f52818d29a.tar.gz
ranch-ca6817880ee5592cf890fb5a71da41f52818d29a.tar.bz2
ranch-ca6817880ee5592cf890fb5a71da41f52818d29a.zip
Add Transport:sendfile/4,/5
Adds offset based sendfile to transports. Same behaviour as file:sendfile/4,/5 except socket and file arguments are reversed and either a raw file or a filename can be used. sendfile/2,/4,/5 now compulsory callbacks in ranch_transport. ranch_tcp:sendfile/2 now defaults to a chunk_size of 8191 - the default for ranch_ssl:sendfile/2. The same default is used for both ranch_tcp:sendfile/4,5 and ranch_ssl:sendfile/4,5.
Diffstat (limited to 'erlang.mk')
0 files changed, 0 insertions, 0 deletions