dvgorod has quit [Read error: Connection reset by peer]
reset has joined #ruby
lad has joined #ruby
<newton>
the last winner post is from 2020 so idk if they've posted the 2021 winner yet
<newton>
(I just used google translate on the pages fwiw)
peder has quit [Ping timeout: 244 seconds]
peder has joined #ruby
lucf117 has joined #ruby
jacktar has joined #ruby
neshpion has joined #ruby
jacktar has quit [Quit: Bye Bye]
jacktar has joined #ruby
chonkbit has joined #ruby
dvgorod_ has quit [Ping timeout: 256 seconds]
Tempesta has quit [Remote host closed the connection]
pwnd_sfw4 has joined #ruby
pwnd_sfw has quit [Read error: Connection reset by peer]
pwnd_sfw4 is now known as pwnd_sfw
motherr has quit [Quit: motherr]
MalkbabY_ has joined #ruby
Tempesta has joined #ruby
MalkbabY has quit [Ping timeout: 240 seconds]
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
lad has quit [Remote host closed the connection]
unyu has quit [Ping timeout: 268 seconds]
unyu has joined #ruby
_ht has quit [Remote host closed the connection]
CrazyEddy has quit [Ping timeout: 252 seconds]
lunarkitty has joined #ruby
CrazyEddy has joined #ruby
ur5us has joined #ruby
dmang has quit [Remote host closed the connection]
[jamez] has quit [Ping timeout: 265 seconds]
<splud>
greetings rubyists.
<bougyman>
Hey splud
<splud>
I'm needing to implement a file upload on a system not normally running a webserver, and with minimal changes to the system. I realize that the ruby installation has WEBrick on it. Pretty quickly, I have a servlet running that can take POST'ed files.
<splud>
except these stream into the WEBrick core functionality and then are passed as an in-memory buffer to the do_POST handler. is there some way to get the parsed data to be streamed to a file, avoiding (ugh) 60+ MB of ram usage when iploading a file?
<splud>
(this is on a smaller space constrained platform)
ur5us has quit [Ping timeout: 256 seconds]
<splud>
and very much ram constrained.
<splud>
afk a couple, need to put something away
Garb0 has joined #ruby
<adam12>
splud: Maybe pass a block to req.body? I'm not sure what you have so far.
<adam12>
splud: Or use IO.copy_stream, depending on where you're putting it.
jhass[m] has quit [Remote host closed the connection]
ckrailo has quit [Remote host closed the connection]
jhass[m] has joined #ruby
ckrailo has joined #ruby
<splud>
adam12 - to be clear. I'm not sending a request to another host, I need THIS host to be able to accept a POST, and the resources available to do that are limited.
<splud>
I can nc and spool data to a file, but then that needs subsequent parse.
<splud>
(nc in lieu of WEBrick)
<splud>
and it's just plain 'meh' way to do it,
<splud>
ven if I do nothing qith the req in do_POST, the servlet instance is going to have a massive RAM buffer.
ur5us has joined #ruby
<splud>
adam12 ?
<splud>
is there some way of getting req.body into a block?
chonkbit has quit [Ping timeout: 256 seconds]
drincruz has joined #ruby
drincruz_ has quit [Ping timeout: 258 seconds]
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 252 seconds]
jetchisel has joined #ruby
MalkbabY has joined #ruby
<adam12>
?code splud
<ruby[bot]>
splud: We can't help you without your code, please post it to https://gist.github.com