The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-11-05

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:13 jberger it sure is
00:13 * jberger is happily a prime number age again!
00:13 sri jberger: happy birthday!
00:15 * sri kinda would like a failraptor shirt... but the lower quality printing for that many colors is not so nice :S http://i.imgur.com/8nNWSDL.png
00:27 sri hahaha... it does have a certain... flair http://kraih.spreadshirt.com/failraptor-A100066327/customize/color/146
00:28 jberger argh, I already ordered!
00:29 sri it's just digital print... you got the good stuff
00:29 jberger well its time for my birthday dinner, I'm off for a bit o/
00:30 sri have fun!
00:38 sri if anyone has any special wishes, just let me know
00:42 sri like bags, umbrellas, iphone cases, thongs, flip flops, teddy bears, towels, buttons, knit caps.... and and and
00:44 sri maybe something for tempire :D http://i.imgur.com/faBWFUW.png
00:47 sri hmm... i should make the most obnoxious shirt possible and add like $100 to the price... for those that want to donate to the project
00:55 dvinciguerra jberger: happy birthday! :)
01:02 woz joined #mojo
01:19 tempire sri: I love that idea
01:22 bpmedley joined #mojo
01:35 sri :D http://kraih.spreadshirt.com/mojolicious-pirate-cloud-limited-edition-A100066570/customize/color/252
01:38 sri hmmm, there's a glow in the dark print
01:39 bpmedley hernan604: Have you thought about using a javascript wrapper player?
01:40 bpmedley something like jplayer
02:05 davido_laptop joined #mojo
02:07 disputin joined #mojo
02:12 sri it's really hard to make obnoxious shirts in the eu store... http://kraih.spreadshirt.de/mojolicious-pirate-cloud-limited-edition-A100081742/customize/color/143
02:12 doublelel joined #mojo
02:27 KCL joined #mojo
02:50 woz joined #mojo
03:00 * bwf wants a mojo beer mug
03:00 sri us or eu?
03:00 bwf us
03:02 sri failraptor?
03:03 sri there's only white beer mugs
03:03 bwf failraptor sounds good
03:06 sri should be available in a few minutes
03:07 bwf \o/
03:13 sri that beer mug looks a lot better in the detail pictures
03:13 sri the preview seemed a bit underwhelming
03:21 franzkafka Awesome, got myself a Perl5 raptor t-shirt with the text on the back.
03:21 franzkafka All my Ruby loving co-workers will have a lot to say when I head to the office in that
03:22 preaction join us, and we will complete your training! we will rule the Unix together!
03:24 brainbug sri, how much do you actually get from each sale?
03:24 brainbug the shirt was $30 w/ shipping, how much of that do you actually get?
03:24 jberger failraptor mugs! oh man, I'm going to buy everything
03:25 brainbug sri, do you have a way for people to donate to Mojolicious?
03:25 brainbug sri, a basic 'thank you' for your work type of thing?
03:25 brainbug s/?/.
03:37 sri brainbug: average is $3 per item
03:37 brainbug sri, you should set up a donate button or something
03:37 brainbug meh, I get that it's cheesy to do
03:38 sri there's https://gratipay.com/kraih/
03:39 hesperaux joined #mojo
03:41 sri i do wonder if the donation shirt should be more wearable
03:42 sri glitter print is a must... but maybe more balanced colors
03:43 sri naah
03:45 sri the eu one is not as great as the us one though
03:47 brainbug Damn, I didn't even see page 2
03:47 brainbug that thing is hideous
03:47 brainbug haha
03:49 sri i think you typoed awesome
03:51 jwang joined #mojo
04:08 marty_ joined #mojo
04:09 d4rkie joined #mojo
04:09 marmez joined #mojo
04:32 sri allright, since europe doesn't have the cool shirts i'll try gold glitter there :) http://kraih.spreadshirt.de/mojolicious-pirate-cloud-limited-glitter-edition-A100081842/customize/color/2
04:34 * bwf just ordered shirt and beer mug
04:34 sri \o/
04:37 franzkafka Is Mojo::Pg production ready?
04:38 franzkafka sri, Can you explain the pirate cloud logo to me?
04:39 woz joined #mojo
04:40 sri no, Mojo::Pg is still experimental, maybe production ready towards the end of the year
04:41 franzkafka OK, I will stick with DBIx::Class for now, and migrate to Mojo::Pg when it is production ready then.
04:41 sri it's a pirate cloud, because we do cloud stuff and are outlaws
04:41 franzkafka That was my assumption ;)
04:41 franzkafka I like it.
04:42 franzkafka I <3 the Perl5 Raptor though. That is just awesome.
04:42 sri obligatory http://cristgaming.com/pirate.swf
04:46 basic6_ joined #mojo
04:48 franzkafka I assume that is newgrounds era?
04:48 franzkafka Wow, Limewire.
04:49 * dabudabu wonders if they ship to Japan
04:52 dabudabu They do!
04:52 dabudabu But t-shirt season is over in about two weeks :(
04:54 tardisx No, t-shirt season is now
04:54 preaction t-shirt season is always!
04:54 preaction layers. you have to work in layers!
04:58 doublelel joined #mojo
05:00 sri gotta add hoodies!
05:04 franzkafka sri, when are you going to be done adding stuff?
05:05 dabudabu I think I'd get a hoodie.
05:06 dabudabu Unless they're very expensive ;p
05:06 sri spreadshirts us actually has kick ass hoodies from dickies
05:06 sri rather expensive, but awesome
05:06 * sri has two already from 2 years ago and they look like new :)
05:06 jberger oh gods now I want one of those too! curse you sri
05:10 sri http://kraih.spreadshirt.com/perl5-raptor-hoodie-A100067298
05:12 dabudabu That _is_ a bit expensive ;p
05:14 preaction I need one with the pirate cloud on the back, and the raptor on the front
05:14 preaction _NEED_
05:19 sri hmm
05:21 sri preaction: added :)
05:21 preaction niiiiice
05:22 sri should be up once the cache expires
05:23 preaction it's on the second page: http://kraih.spreadshirt.com/perl5-raptor-mojolicious-pirate-cloud-zip-hoodie-A100067324/customize/color/2
05:24 preaction is that "Dark Navy" a blue or a grey? "navy" usually implies blue
05:34 jberger oh that's nice
05:35 * jberger considers
05:35 sri i'll make a normal hoodie with both too
05:35 sri not much cheaper though :o
05:40 franzkafka sri, let me know when you're done adding things. I want to save my money until I can view all the selection.
05:40 franzkafka I need that hoody
05:41 sri franzkafka: dunno, i mostly add stuff based on feedback ;p
05:41 franzkafka Hrm, OK, well I know I want a hoodie, and I've already ordered the t-shirt.
05:42 franzkafka Too bad I quit drinking beer a few months ago, otherwise I'd definitely be getting a mug
05:42 franzkafka Though, the mug would be good with some iced tea in it ;)
05:43 franzkafka Seems a bit sacrilege to put "not beer" in the mug though
05:43 jwang joined #mojo
05:54 preaction rootbeer is great in a mug
05:54 preaction gingerbeer, sarsparilla, there's lots of n/a things that can go in mugs
05:55 preaction but isn't that a coffee mug?
05:59 doublelel joined #mojo
06:13 rem_lex joined #mojo
06:26 batman sri: how much for a failraptor without the "mojolicious" text?
06:28 woz joined #mojo
06:29 batman I want people to get curious and ask me about the picture
06:36 * sri shrugs
06:36 sri i'm on the edge about the failraptor shirt actually, since it's the only one with low print quality
06:37 sri it might just go away completely
06:38 sri or as they say at spreadshirt... high quality... while all other methods are super high quality -.-
06:52 batman "all other methods" ?
06:53 batman guess i'll just buy the perl5 raptor mug
06:55 crab joined #mojo
07:00 batman crab!!!
07:00 batman how are you? :)
07:02 crab so tired.
07:02 crab how are you, batman?
07:03 batman oh. what's going on?
07:04 batman i'm good. working a lot...
07:10 bowtie joined #mojo
07:12 salparadise joined #mojo
07:13 salparadise trying to set a default layout, $self->defaults(layout => 'bootstrap'); I have this on startup but Rendering cached template "layouts/default.html.ep" shows up on logs?
07:15 batman salparadise: have you set <% layout ... %> in your template?
07:18 salparadise batman: no
07:18 * salparadise sets it
07:20 batman are you sure you set the default, and don't reset it somewhere else?
07:22 salparadise batman: yep I set the default, but reset it on the template :), sorry...
07:23 salparadise thanks for the hint
07:23 batman your welcome :)
07:24 salparadise while im here, so all the routes are set in 'sub startup' and then the point to controller & their methods in my application files '.pm' ?
07:24 salparadise is that how I would organize stuff?
07:28 batman yeah. if you do "mojo generate app Some::App" the structure will be set up for you
07:29 salparadise cool
08:01 rawler joined #mojo
08:04 bowtie joined #mojo
08:08 ashimema joined #mojo
08:15 bowtie joined #mojo
08:16 basiliscos joined #mojo
08:17 woz joined #mojo
08:20 Vandal joined #mojo
08:24 ashimema Are there any particular recomendation, pitfalls to steer clear of when writing an AngularJS + Mojolicious app that anyone here would care to share experiences of?
08:27 ashimema Feels like everyone out there is writing two pretty disparate apps in this case.. one gulp/grunt + angular client side app served up by itself, then a Mojo restful app as the back end served up separately..
08:28 ashimema My initial work still uses Mojo for serving everything at the moment... with a fair chunk of angular just sitting in the public dir.. wondering how others are approaching this.
08:35 Shaeto joined #mojo
08:38 bowtie joined #mojo
08:47 trone joined #mojo
08:52 bowtie joined #mojo
09:03 bowtie joined #mojo
09:03 ashimema joined #mojo
09:04 woz joined #mojo
09:15 dp_ joined #mojo
09:16 irq joined #mojo
09:19 neyasov joined #mojo
09:30 dod joined #mojo
09:38 mpw joined #mojo
09:38 mpw hi
09:44 tholen joined #mojo
09:45 mpw i'm using the latest mojolicious 5.57 on OpenBSD and when doing a '$ mojo get www.cpan.org' everything is fine, same for '$ mojo get hostname'. Weird enough, a '$ mojo get localhost' or '$mojo get 127.0.0.1' quits with 'Mojo::Reactor::EV: Write failed: Can't call method "on" on an undefined value at /usr/local/...Mojo/UserAgent.pm line 122.
09:55 chankey joined #mojo
09:56 marty joined #mojo
09:58 marty__ joined #mojo
09:59 fhelmber_ joined #mojo
10:06 Jonis nice
10:07 Jonis sri: totally buying some mojo swag when I get paid
10:07 Jonis failraptor is a must
10:07 basiliscos joined #mojo
10:09 Jonis should toss it in the topic
10:16 mpw more details with debug on
10:16 mpw $ MOJO_IOLOOP_DEBUG=1 MOJO_USERAGENT_DEBUG=1 MOJO_EVENTEMITTER_DEBUG=1 mojo get localhost
10:16 mpw -- Reactor initialized (Mojo::Reactor::EV)
10:16 mpw -- Blocking request (http://localhost)
10:17 mpw -- Emit start in Mojo::UserAgent (1)
10:17 mpw -- Connect (http:localhost:80)
10:17 mpw -- Emit error in Mojo::IOLoop::Client (1)
10:17 mpw -- Emit error in Mojo::Reactor::EV (1)
10:17 mpw Mojo::Reactor::EV: Write failed: Can't call method "on" on an undefined value at /usr/local/../Mojo/UserAgent.pm line 122.
10:17 mpw -- Emit finish in Mojo::Message::Response (0)
10:17 mpw -- Emit finish in Mojo::Transaction::HTTP (0)
10:38 batman mpw: never paste into the channel
10:38 batman pastebin?
10:39 batman use https://gist.github.com, https://ssl.thorsen.pm/paste/ or some similar service
10:45 mpw k
10:54 mpw gist link to error: https://gist.github.com/anonymous/70fc75b5327f8e30a9a2
10:56 DaTa i parsed "gist link TERROR"
10:57 bpmedley mpw: Will you try “get http://localhost” ?
10:57 mpw same error
10:58 bpmedley Does 127.0.0.1 work?
11:00 mpw no
11:10 mpw It looks like whenever a connection is made via the loop device the error appears
11:16 bpmedley http://pastie.org/9697439  <— Would you run that?
11:19 mpw IO::Socket::INET: connect: Connection refused at test.pl line 8
11:23 bc547 mpw: do you allow connections to localhost? try eg.  'telnet 127.0.0.1 80'
11:25 mpw bc547: yes. I have a service running on localhost port 25 which responds...telnet 127.0.0.1 80 shows "connection refused"
11:31 denis_boyun joined #mojo
11:39 Kripton joined #mojo
12:01 denis_boyun joined #mojo
12:06 bpmedley mpw: http://pastie.org/9697558
12:06 bpmedley $ RMM_BLOCK=1 /opt/perl sock.pl hrmm <— Try that pls
12:08 bpmedley Sorry, that’s: $ HRMM_BLOCK=1 …
12:11 tholen joined #mojo
12:15 ladnaV joined #mojo
12:19 mattastrophe joined #mojo
12:23 d4rkie joined #mojo
12:23 mpw bpmedley: thanks...$ HRMM_BLOCK=1 perl test4.pl hrmm           -> no connect
12:26 bpmedley There is a “connect” in Linux.. love the semantics of sockets.
12:28 mpw bpmedley: $perl test4.pl IO::Socket::IP -> nothing        $ perl test4.pl IO::Socket::INET -> connection refused      ok...
12:29 D4RK-PH0ENiX joined #mojo
12:30 bpmedley So, IO::Socket::IP and IO::Socket::INET behave differently on your box given the same new() arguments?
12:31 mpw bpmedely: looks like...
12:32 bpmedley MOJO_NO_IPV6=1  will you try that ENV var?
12:33 mpw bpmedley: tried that...it falls back to IO::Socket::INET
12:33 bpmedley Right, and does that yield a “Write failed”?
12:35 neilhwatson joined #mojo
12:38 mpw bpmedley: MOJO_NO_IPV6=1 mojo get localhost -> Problem loading URL http://localhost: Can't connect IO::Socket::INET: connect: Connection refused
12:38 bpmedley Sounds correct.
12:38 mpw yes
12:39 bpmedley Cool, so you have a workaround for now?
12:43 mpw hmm..perhaps. I knew that flag, but would like to know the reason it doesn't work with preferred IO::Socket::IP...looks like it's no issue wrt mojolicious itself. However...thanks for your help
12:51 dvinciguerra joined #mojo
13:26 bowtie joined #mojo
13:27 ignacio_ joined #mojo
13:53 neilhwatson joined #mojo
14:01 bowtie joined #mojo
14:08 Ptolemarch joined #mojo
14:15 bowtie joined #mojo
14:18 amon joined #mojo
14:27 KCL_ joined #mojo
14:28 Ptolemarch joined #mojo
14:37 bowtie joined #mojo
14:46 neilhwatson joined #mojo
14:47 marmez joined #mojo
14:49 bowtie joined #mojo
14:49 * sri yawns
14:51 genio robots don't yawn
15:04 bobkare joined #mojo
15:07 bowtie joined #mojo
15:10 * batman awaits mug and t-shirt from sti's webshop
15:11 batman Autocorrect-- # s/sti/sri/
15:12 Dandre joined #mojo
15:18 marmez Hello everyone!
15:19 marmez I bother with one important question so let me ask on it.
15:20 marmez Trailing slash or no trailing slash? Which way to choose and why? What is better?
15:20 marmez Especially in relation to Mojolicious...
15:21 batman marmez: I try not to care. I never know when trailing is sent or not
15:21 marmez 'A trailing slash in the path is always optional.'
15:22 marmez http://mojolicio.us/perldoc/Mojolicious/Guides/Routing#Routes
15:24 batman Why do you care..? (Curious)
15:25 marmez batman: I'm trying to make link to root of embedded app.
15:26 marmez For instance, from this page http://www.mydomain.com/myembapp/something/else to http://www.mydomain.com/myembapp
15:27 Ptolemarch joined #mojo
15:29 marmez Which is two levels above obviously. So I did: link_to('root' => '/') but result was http://www.mydomain.com/myembapp/ and not the second link above.
15:30 marmez I'm just curious what are you thinking about it.
15:31 marmez Not sure what to prefer.
15:34 sh4 joined #mojo
15:35 sh4 joined #mojo
15:49 Ptolemarch joined #mojo
16:00 neyasov joined #mojo
16:09 arthas joined #mojo
16:15 stryx` joined #mojo
16:18 bowtie joined #mojo
16:22 Oleg joined #mojo
16:23 Oleg sri: what is your output for this test https://github.com/kraih/mojo/issues/700#issuecomment-61816890 ?
16:23 Oleg Mojolicious - Perl real-time web framework      Server available at http://127.0.0.1:3000.
16:23 Oleg this is what i got
16:23 sri Oleg: i guess the test was not as self-explanatory as i though
16:24 sri *+t
16:24 sri you're supposed to perform a request
16:26 sri Oleg: this one is better
16:26 sri perl -Ilib -Mojo -E 'say g("mojolicio.us")->dom->at("title")->text; Mojo::IOLoop->next_tick(sub { say app->ua->get("mojolicio.us")->res->dom->at("title")->text }); app->start' prefork -w 1
16:26 sri it should give you the title two times
16:26 sri and two perl processes
16:28 doublelel joined #mojo
16:28 Oleg works as you described on my linux. I'll check on os x now
16:31 sri this is odd
16:31 sri now it works
16:31 sri no wait
16:32 sri i'm a doofus... used the wrong branch
16:32 sri (of mojo)
16:32 Oleg so it still doesn't work on net_dns_native branch?
16:34 sri yes, still doesn't
16:35 sri getting just one title printed
16:35 sri and a bonus process
16:37 sri ah, looks like the forked process is dying so fast it looks like there are multiple processes ;p
16:38 Oleg aha, can confirm OS X affected
16:38 Oleg will look now what's going on
16:38 sri MOJO_LOG_LEVEL=debug makes it more clear
16:38 * sri failed a bit testing this
16:47 Ptolemarch joined #mojo
16:52 Akron joined #mojo
16:52 Akron jberger: Happy birthday!
16:56 Xyem Is there any particular criteria on being mentioned here: https://github.com/kraih/mojo/wiki/Projects-and-Companies-Using-Mojolicious
16:57 sri no
16:58 Xyem Okay cool, thanks
17:01 good_news_everyon joined #mojo
17:01 good_news_everyon [mojo] kraih force-pushed net_dns_native from 29666a4 to 5109a23: http://git.io/5MO69Q
17:01 good_news_everyon mojo/net_dns_native 3af7af1 Sebastian Riedel: added basic support for Net::DNS::Native
17:01 good_news_everyon mojo/net_dns_native 303ab0e Sebastian Riedel: make tests pass again
17:01 good_news_everyon mojo/net_dns_native e31bd14 Sebastian Riedel: use IO::Socket::IP by default
17:01 good_news_everyon left #mojo
17:09 Oleg I hate thit "Important" notice: https://developer.apple.com/Library/ios/documentation/Performance/Reference/GCD_libdispatch_Ref/index.html
17:12 dod joined #mojo
17:13 ignacio__ joined #mojo
17:15 * sri thinks it is time for your daily #701 reminder, if you want Mojo::DOM::val to stay speak up! https://github.com/kraih/mojo/issues/701
17:25 jwang joined #mojo
17:25 oetiker_ joined #mojo
17:26 oetiker joined #mojo
17:28 oetiker I have written a mojolicious/qooxdoo application generator. creating a module in the Mojolicious::Command::generate namespace. The PAUSE indexer does not like this. Where do I apply ? https://github.com/oetiker/qx-mojo-app
17:30 sri that seems odd, there's already generator commands https://metacpan.org/search?q=mojolicious+command+generate&amp;size=20
17:31 irq joined #mojo
17:32 sri are you sure it's not because you've inlined stuff that looks like modules? https://github.com/oetiker/qx-mojo-app/tree/master/lib/Mojolicious/Command/generate/qx_mojo_app/backend/lib
17:32 bowtie joined #mojo
17:33 oetiker the indexer sais
17:33 oetiker This distribution name can only be used by users with permission for the
17:33 oetiker package Mojolicious::Commands::generate::qx_mojo_app, which you do not
17:33 oetiker have.
17:36 sri there's a typo, but it doesn't explain the problem
17:36 oetiker maybe the directory lib/Mojolicious/Command/generate/qx_mojo_app is the problem ... will see what happens when I explicitly exclude it with no_index
17:36 sri should be Command, not Commands
17:37 oetiker :-) thanks ...
17:37 oetiker maybe it helps
17:38 sri oh, maybe the typo does explain it, and it's just an odd indexer error message :)
17:39 sri nicomen: doesn't look good for Mojo::DOM::val at all
17:41 oetiker sri: thanks ... that was the problem ... now it worked
17:44 oetiker we keep running into trouble because of Mojo/IOLoop/Server.pm: local $^F = 1000;
17:45 oetiker today it was because we did a postgres DBI request in the app class, and later in the controller while running the code in prefork mode
17:46 bowtie joined #mojo
17:46 oetiker we use connect_cached to reuse dbi handles
17:47 oetiker because of the $^F setting the handles will get inherited by the forked kids
17:47 oetiker postgresql does not like that at all
17:48 disputin joined #mojo
17:48 oetiker we can obviously work around the problem, but I guess it might be difficult to spot for someone who does not know about the $^F setting
17:50 berov joined #mojo
17:57 basiliscos joined #mojo
18:18 mpw Regarding my problem https://gist.github.com/anonymous/70fc75b5327f8e30a9a2 i found out, that $ mojo get localhost works if IO::Socket::IP operates in blocking mode (argument Blocking => 1)...Does that make sense?
18:20 mpw with Blocking => 1   a $ mojo get localhost quits with: Problem loading URL "http://localhost": Can't connect: Connection refused
18:21 mpw and with Blocking => 0 (the default in Mojo/IOLoop/Client.pm) -> Mojo::Reactor::EV: Write failed: Can't call method "on" on an undefined value at /usr/local/...Mojo/UserAgent.pm line 122
18:23 sri oetiker: i don't understand, how does connect_cached relate to the localized $^F value?
18:24 bowtie joined #mojo
18:28 sri mpw: does this patch make a difference? https://gist.github.com/anonymous/cc76e0ec40c31045d43a
18:29 sri mpw: i would suspect that this line is not good enough https://github.com/kraih/mojo/blob/master/lib/Mojo/IOLoop/Client.pm#L84
18:31 bowtie joined #mojo
18:35 mpw sri: with your diff: $ mojo get localhost -> Problem loading URL "http://localhost": Unknown error
18:36 sri mpw: allright, so we know an error happens and Mojo::IOLoop::Client fails at picking it up
18:36 sri soooo... now just find the ->emit(error => ...) call in question and make it better at getting the error :)
18:37 sri (although, i suspect it might be the one i linked to)
18:38 sri or the one above
18:39 sri mpw: if you want to try another patch https://gist.github.com/anonymous/19cc5f9b6d24e3f81810
18:39 sri whoops
18:40 sri shouldn't assign that to $!
18:40 jzawodn what is mojo trying to tell me here? https://www.dropbox.com/s/pumfflst465b5nw/Screenshot%202014-11-05%2010.41.27.png?dl=0
18:41 sri better patch https://gist.github.com/anonymous/bf162003138515860ca9
18:41 sri that should be more informative
18:41 sri jzawodn: that your mojolicious is terribly outdated ;p
18:42 sri jzawodn: that message doesn't exist anymore for quite some time
18:43 jzawodn hah, true.  perhaps I should test and upgrade our production apps
18:43 mpw sri: second version is better.... $mojo get localhost -> Socket is not connected
18:43 sri ah
18:44 sri so $! already has a value
18:45 sri mpw: what IO::Socket::IP version?
18:45 mpw yes
18:45 mpw 0.31
18:45 sri i wonder if that changed
18:45 mpw sri: tried 0.32 w/o any difference
18:45 sri i mean from 0.20
18:46 sri maybe it assigns $! itself or so
18:48 Ptolemarch joined #mojo
18:49 sri it would be awesome if you could try IO::Socket::IP 0.20 to see if there's a difference :)
18:49 Oleg sri: so, current master passes your test on my OS X
18:49 sri Oleg: \o/
18:49 Oleg need more tests however
18:51 sri Oleg: can confirm it works!
18:51 Oleg cool
18:56 dotandimet joined #mojo
18:56 Vytas_ joined #mojo
18:57 sri mpw: since i don't have a test case i can't do it myself
19:00 mpw sri: running with >1 year old 0.20 now...same error message -> Problem loading URL "http://localhost": Socket is not connected
19:00 rawler joined #mojo
19:00 sri mpw: and without my patch you get no error?
19:05 sri looks like at least the ->connected method has not changed since 0.20
19:06 sri Oleg: please let me know when you release a new Net::DNS::Native, would like to get the feature back on track as soon as possible
19:12 mpw sri: yes...it's exactly the same message. With the diff to IOLoop.pm only it says: Problem loading URL http://localhost Unknown error
19:12 Oleg sri: Ok, if all will be good, i'll release it tommorow
19:12 sri Oleg: hurry up! :)
19:12 * sri is very impatient
19:12 Oleg :)
19:16 sri mpw: interesting, that line has been there unchanged from the start :O https://github.com/kraih/mojo/commit/ad8d32401a790e60dca46903ee01aafedd2b7dd8#diff-4b4175417080883ed2af6e92086dc8f2R145
19:17 sri maybe it was a workaround for early IO::Socket::IP bugs... we were pretty much alpha testing the first releases
19:22 good_news_everyon joined #mojo
19:22 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/POJKhw
19:22 good_news_everyon mojo/master 46edc0f Sebastian Riedel: improved error handling in Mojo::IOLoop::Client
19:22 good_news_everyon left #mojo
19:22 sri mpw: that should solve the problem
19:23 mpw hmm...weird enough as i already mentioned in my error message above, a $ mojo get whateveryouwant quits with "Problem loading URL http://whateveryouwant: Can't connect: no address associated with name"...or if the hostname exists with "Connection refused". localhost is the beast
19:23 mpw sri: will try :-)
19:23 sri if everything goes according to plan, Net::DNS::Native gets releases soon, we can merge the non-blocking resolver patch, make IO::Socket::IP a hard dependency, and release a 5.58 soonish with the change
19:24 sri s/s/d//
19:25 jb360 joined #mojo
19:28 sri allright, #700 is back on the table https://github.com/kraih/mojo/issues/700
19:28 sri jberger, marcus, tempire, batman, crab: votes!
19:28 sri oh hey, crab is back \o/
19:29 tempire If it works, I'm ++
19:29 neyasov joined #mojo
19:29 mpw sri: $ mojo get localhost -> Problem loading URL "http://localhost": Socket is not connected
19:30 mpw sri: $ mojo get othermachine -> Problem loading URL "http://othermachine": Connection refused
19:31 sri \o/
19:32 crab hi sri
19:32 sri long time no see
19:35 mpw sri: thanks again, tests pass now, too
19:36 sri thanks for investigating
19:36 mpw :-)
19:47 disputin joined #mojo
19:48 basiliscos joined #mojo
19:53 rawler joined #mojo
19:57 batman I hate when the OS break down. Software is hard :(
19:58 batman Reinstalling Ubuntu 14.10...
19:58 batman I'm still +1 as long as tests pass (NDN)
19:58 bowtie joined #mojo
20:02 mpw sri: one additional question...few hours ago i talked to bpmedley wrt the IO::Socket::IP topic and it looks like this problem doesn't exist on linux. So on OpenBSD the loopback interface behaves differently (socket not connected vs connection refused)
20:18 sri and the question is?
20:24 mpw sri: hehe, nice catch... i just wanted to make sure we don't have only a workaround for a still existing problem...
20:25 mpw sri: but yes, looks like OpenBSD is handling loopback stuff in another way
20:26 sri well, that's of no concern to mojolicious i believe
20:26 sri we just have to pass along the error message
20:27 mpw indeed
20:28 sri allright +1 from batman and tempire for #700
20:45 dotandimet joined #mojo
20:49 oetiker sri: my guess is that the open connection from the parent process to the postgress server gets shared among the child processes. if two child processes start talking to the database in parallel, then there is trouble ... at least the error messages we get seem to suggest this (people normally get theses when working in multi threaded environments)
20:51 sri oetiker: our use of $^F is localized and it shouldn't be possible for it to leak
20:53 denis_boyun joined #mojo
20:53 woz joined #mojo
20:54 sri so, it should only ever apply to listen sockets we create, which should be harmless to inherit by child processes
20:54 hoppie joined #mojo
20:55 hoppie In the https://github.com/kraih/mojo/compare/net_dns_native branch, does Makefile.PL need updating?
20:56 oetiker sri: except when the child does a fork&excec to start a daemon which then inherits the soket and will prevent the server from restarting later on as it is occupying the port ... but that is a different story
20:56 dotandimet joined #mojo
20:56 oetiker will investigate the DBI issue
20:57 sri there's also Mojo::Pg now btw. https://metacpan.org/pod/Mojo::Pg
20:57 oetiker sri: very coool!
20:57 hoppie the reason I'm asking is that (POD) changes mention Net::DNS::Native, but not IO::Socket::IP.
20:58 sri hoppie: ??? https://github.com/kraih/mojo/compare/net_dns_native#diff-5d3ba18294715d9415e9e732852bfec6R7
20:59 hoppie ok, got it. The Makefile.PL is the minimum dependencies. The POD area mentions optional modules.
21:00 * sri nods
21:01 hertzhaft joined #mojo
21:03 hoppie jberger: happy birthday (hoops & yoyo) http://www.youtube.com/watch?v=IWmWWEAZWFc
21:07 dotandimet joined #mojo
21:14 hernan604 happy bday jberger
21:42 neyasov joined #mojo
21:43 dotandimet joined #mojo
21:59 sri some inspiration for how we could abstract http/2 support https://github.com/facebook/proxygen#architecture
22:00 sri we already have the higher levels with transaction and handler
22:00 sri codec and session would be interesting
22:02 sri if anyone could make Mojo::Server::Daemon protocol agnostic with a codec layer that would be awesome
22:03 sri prolly remove the start line parsing/generating bits from the message/transaction classes and put them into the codec too
22:05 woz joined #mojo
22:11 nyamned joined #mojo
22:43 neyasov joined #mojo
22:45 disputin joined #mojo
23:06 basiliscos joined #mojo
23:18 rem_lex|pivo joined #mojo
23:31 Kripton_ joined #mojo
23:53 sri hope nobody ordered the normal hoodie on the us store yet, i made a mistake and selected the wrong printing method :o
23:53 woz joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary