havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.0, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
<mooff> all works dandy except.. after a short while, i get a stacktrace about sslv3 alert bad record mac
<mooff> .. on the parent process. does anyone know what's going on?
<leah2> sounds weird, perhaps it flushes some buffer twice
<leah2> try io.close_on_exec = true in the parent instead
<leah2> should be on by default tho oO
<mooff> fwiw, the io is a UNIXSocket. close_on_exec didn't seem to close it for the fork :(
<leah2> Sends "close notify" to the peer and tries to shut down the SSL
<leah2> connection gracefully.
<leah2> so that's why it fails ;)
<mooff> huh
<leah2> oh but you tried socket.io.close?
<mooff> yah, i'm trying .io.close to avoid SSL shut down
<leah2> not socket.close
<mooff> maybe i should try to close an IO.pipe, or something, to see if it affects the parent
<leah2> cant really
<leah2> strace the child to see if anything writes
<mooff> oof
<leah2> hey it's easier than tcpdump :p
<mooff> heheh
<mooff> alright, 1 min
<leah2> maybe flush the io before fork?
mixfix41 has joined #ruby
victori has quit [Ping timeout: 250 seconds]
<mooff> the connection is idle most of the time.. unlikely it has anything to write
victori has joined #ruby
<mooff> so from strace.. the fork only does e.g. close(17) = 0.
<mooff> where 17 is the fd in question
<leah2> hm, that shouldnt do any harm...
<mooff> could the parent get some kind of signal about it?
<mooff> stracing *it* would be a bit more noisy.. but couldn't hurt
<mooff> so when the fork closed that fd 17, the parent's.. kept working
mixfix41 has quit [Ping timeout: 240 seconds]
<mooff> two differences between the bork scenario and the working scenario:
<mooff> - the bork scenario has used Process::Sys.setregid and Process::Sys.setreuid to switch to a different user
mixfix41 has joined #ruby
<mooff> .. then closed the fd, tried (on purpose) to write to it, and so exited from an exception immediately
<mooff> - the working scenario stayed as root. it did Signal.trap('USR1') { io.close }; sleep 3600. then i sent it USR1
<leah2> hmm
<leah2> i'm out of ideas, sorry
unyu has quit [Quit: WeeChat 3.4]
Rounin has joined #ruby
<mooff> no worries, thank you
Guest9014 has quit [Ping timeout: 240 seconds]
unyu has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
jhawthorn has quit [Quit: ZNC 1.8.2 - https://znc.in]
justache has quit [Ping timeout: 256 seconds]
hightower2 has quit [Remote host closed the connection]
jhawthorn has joined #ruby
justache has joined #ruby
ZAJDAN has quit [Ping timeout: 256 seconds]
<ox1eef> weaksauce: i built from source using ./configure --prefix=/home/0x1eef/.rubies/3.1.0/ && make && make install
bluedust has joined #ruby
goldfish has quit [Ping timeout: 240 seconds]
<weaksauce> ox1eef curious
<weaksauce> i can't imagine any world where it doesn't error on that
mdemo has quit [Quit: The Lounge - https://thelounge.github.io]
fercell has quit [Ping timeout: 250 seconds]
ralu has quit [Ping timeout: 256 seconds]
seabre_ has quit [Ping timeout: 240 seconds]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
<ox1eef> weaksauce: which error ? the issue was that /home on freebsd points to /usr/home, so it was working correctly all along. compile etc went fine.
<ox1eef> while the directory didn't exist (the .rubies/3.1.0 part), ruby looks to create it for you.
shokohsc has quit [Ping timeout: 250 seconds]
shokohsc has joined #ruby
fowl has joined #ruby
seabre has joined #ruby
ralu has joined #ruby
polishdub has quit [Ping timeout: 256 seconds]
fowl has quit [Quit: Client closed]
Vaevictu1 has joined #ruby
Vaevictus has quit [Ping timeout: 250 seconds]
vigumnov has joined #ruby
victori has quit [Ping timeout: 256 seconds]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
victori has joined #ruby
vigumnov has quit [Ping timeout: 256 seconds]
vigumnov has joined #ruby
victori has quit [Read error: Connection reset by peer]
_ht has joined #ruby
bluedust_ has joined #ruby
ZAJDAN has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 3.4]
Guest9014 has joined #ruby
ZAJDAN has quit [Ping timeout: 250 seconds]
ZAJDAN has joined #ruby
ZAJDAN1 has joined #ruby
ZAJDAN has quit [Ping timeout: 240 seconds]
ZAJDAN2 has joined #ruby
oxfuxxx has joined #ruby
ZAJDAN1 has quit [Ping timeout: 268 seconds]
oxfuxxx has quit [Ping timeout: 268 seconds]
fef has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
Thanzex has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
_ht has quit [Ping timeout: 256 seconds]
_ht has joined #ruby
cenilein has quit [Remote host closed the connection]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
fef has quit [Ping timeout: 276 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 250 seconds]
marahin has left #ruby [Leaving]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 268 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
_ht has quit [Ping timeout: 250 seconds]
_ht has joined #ruby
oxfuxxx has joined #ruby
fef has joined #ruby
John_Ivan has quit [Ping timeout: 240 seconds]
John_Ivan has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
Guest47 has joined #ruby
Guest4789 has joined #ruby
oxfuxxx has quit [Ping timeout: 268 seconds]
Guest4789 has quit [Quit: Client closed]
Guest47 has quit [Quit: Client closed]
oxfuxxx has joined #ruby
mixfix41 has quit [Ping timeout: 250 seconds]
oxfuxxx has quit [Ping timeout: 240 seconds]
hanzo has joined #ruby
oxfuxxx has joined #ruby
<John_Ivan> I have an issue with ruby mechanize. I'm trying to login into website with credentials and a simple form.
<John_Ivan> the website, when querying the loginpage, containing the form has a cookie in it. I construct a form and I submit it
<John_Ivan> assuming that the agent takes care of the rest, my next request with it doesn't take into consideration the form submission. am I doing something wrong/
<John_Ivan> my code goes as follows
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
oxfuxxx has joined #ruby
mixfix41 has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
codingstream has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
oxfuxxx has joined #ruby
Thanzex has joined #ruby
oxfuxxx has quit [Ping timeout: 268 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 250 seconds]
Sheilong has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
mbrndtgn has quit [Quit: The Lounge - https://thelounge.chat]
mbrndtgn has joined #ruby
aighearach_ has quit [Quit: Leaving]
aighearach has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
fef has quit [Quit: Leaving]
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
mixfix41 has quit [Ping timeout: 250 seconds]
splud has quit [Ping timeout: 250 seconds]
log101 has joined #ruby
Tomte has joined #ruby
mixfix41 has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
Tomte has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
log101 has quit [Ping timeout: 256 seconds]
log101 has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
perrierjouet has quit [Remote host closed the connection]
perrierjouet has joined #ruby
log101 has quit [Ping timeout: 256 seconds]
splud has joined #ruby
splud has quit [Ping timeout: 240 seconds]
splud has joined #ruby
Vivek has joined #ruby
splud has quit [Ping timeout: 256 seconds]
Vivek is now known as Guest5678
Sheilong has quit []
Guest88 has joined #ruby
Guest88 has quit [Client Quit]
splud has joined #ruby
___nick___ has quit [Ping timeout: 268 seconds]
_ht has quit [Remote host closed the connection]
random-jellyfish has joined #ruby
Guest5678 has quit [Quit: Client closed]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
goldfish has joined #ruby
teclator has joined #ruby
graywolf has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ruby
codingstream has quit [Quit: WeeChat 3.3]
hanzo has quit [Quit: Connection closed for inactivity]
BSaboia has joined #ruby
graywolf has quit [Quit: WeeChat 3.4]
mdemo has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ZAJDAN2 has quit [Ping timeout: 268 seconds]
Rounin has quit [Ping timeout: 256 seconds]
bluedust_ has quit [Remote host closed the connection]
cyberbanjo has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby