Tuesday, 2015-07-28

*** danielglauser <danielglauser!~danielgla@c-73-153-133-43.hsd1.co.comcast.net> has joined #immutant00:04
*** jcrossle_ is now known as jcrossley300:14
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant00:39
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Ping timeout: 244 seconds)00:44
*** bbrowning_away <bbrowning_away!~bbrowning@redhat/jboss/bbrowning> has quit IRC (Remote host closed the connection)00:54
*** bbrowning_away <bbrowning_away!~bbrowning@redhat/jboss/bbrowning> has joined #immutant00:54
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has joined #immutant00:55
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has quit IRC (Client Quit)00:57
*** danielglauser <danielglauser!~danielgla@c-73-153-133-43.hsd1.co.comcast.net> has quit IRC (Remote host closed the connection)02:06
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant02:08
*** seangrov` <seangrov`!~user@c-50-174-77-118.hsd1.ca.comcast.net> has quit IRC (Ping timeout: 246 seconds)02:10
*** jcrossley3 is now known as jcrossley3-away02:15
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has joined #immutant04:40
*** bitpimp <bitpimp!~pfrench@unaffiliated/bitpimp> has quit IRC (Quit: bitpimp)05:15
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Remote host closed the connection)05:51
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant06:04
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant06:07
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Ping timeout: 240 seconds)06:11
*** cap10morgan_ <cap10morgan_!~cap10morg@67-6-203-183.hlrn.qwest.net> has quit IRC (Read error: Connection reset by peer)07:42
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 240 seconds)09:32
*** qwerty_nor <qwerty_nor!~Thunderbi@37.229.49.175> has joined #immutant09:55
*** bbrowning_away is now known as bbrowning11:43
*** bbrowning <bbrowning!~bbrowning@redhat/jboss/bbrowning> has quit IRC (Quit: Leaving)11:51
*** bbrowning <bbrowning!~bbrowning@redhat/jboss/bbrowning> has joined #immutant11:54
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant12:09
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Ping timeout: 246 seconds)12:13
*** agarman <agarman!~agarman@169.130.108.20> has joined #immutant12:25
*** danielglauser <danielglauser!~danielgla@2601:282:4200:c210:14a4:625d:50fe:7654> has joined #immutant12:42
*** tcrawley-away is now known as tcrawley12:51
*** lance|afk is now known as lanceball13:09
*** jcrossley3-away is now known as jcrossley313:11
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant13:14
*** bitpimp <bitpimp!~pfrench@unaffiliated/bitpimp> has joined #immutant13:23
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Remote host closed the connection)13:29
*** agarman <agarman!~agarman@169.130.108.20> has quit IRC (Ping timeout: 244 seconds)13:32
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant13:32
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Remote host closed the connection)13:34
*** bobmcw <bobmcw!~bobmcw@va-67-233-84-8.dhcp.embarqhsd.net> has joined #immutant13:34
*** bobmcw <bobmcw!~bobmcw@va-67-233-84-8.dhcp.embarqhsd.net> has quit IRC (Changing host)13:34
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has joined #immutant13:34
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has quit IRC (Remote host closed the connection)13:34
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has joined #immutant13:35
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has joined #immutant13:42
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant13:56
*** danielglauser <danielglauser!~danielgla@2601:282:4200:c210:14a4:625d:50fe:7654> has quit IRC (Remote host closed the connection)14:02
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)14:04
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Remote host closed the connection)14:09
*** bbrowning is now known as bbrowning_away14:29
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has joined #immutant14:30
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant14:31
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Remote host closed the connection)14:33
*** danielglauser <danielglauser!~danielgla@166.177.122.82> has joined #immutant14:38
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant14:39
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Remote host closed the connection)14:55
*** bbrowning_away is now known as bbrowning15:17
*** danielglauser <danielglauser!~danielgla@166.177.122.82> has quit IRC (Ping timeout: 246 seconds)15:25
*** pandeiro <pandeiro!~user@177.33.155.221> has joined #immutant15:25
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant15:27
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)15:29
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has joined #immutant15:29
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)15:38
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has joined #immutant15:38
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 272 seconds)15:43
*** seangrove <seangrove!~user@c-50-174-77-118.hsd1.ca.comcast.net> has joined #immutant15:47
*** danielglauser <danielglauser!~danielgla@75-148-43-81-Colorado.hfc.comcastbusiness.net> has joined #immutant15:50
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Read error: Connection reset by peer)15:50
*** gphillip_ <gphillip_!~gphillips@169.130.108.37> has joined #immutant15:51
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has joined #immutant15:55
*** gphillip_ <gphillip_!~gphillips@169.130.108.37> has quit IRC (Remote host closed the connection)16:11
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant16:13
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)16:16
*** lanceball is now known as lance|afk16:22
*** bbrowning is now known as bbrowning_away16:32
*** bbrowning_away is now known as bbrowning17:02
*** pandeiro <pandeiro!~user@177.33.155.221> has quit IRC (Read error: Connection reset by peer)17:08
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has joined #immutant17:17
jodaroso heres a question17:29
jodaroif i drop a war in to the container that doesn't actually do any immutant stuff (no scheduling, http stuff, etc)17:29
jodaroshould that work still?17:29
jodaroit's main just runs a loop17:30
jodaromy assumption was just that main would run regardless17:30
jodarooh17:30
jodarowait17:30
jodaromaybe i'm both right and wrong17:31
*** lance|afk is now known as lanceball17:31
jcrossley3jodaro: it should invoke your main, yes17:32
jcrossley3but you'll want to return from main. your loop should be async17:33
jodaroah, thats probably whats going on17:33
jodaroi'm getting an initialization timeout17:33
jcrossley3yeah, you would17:33
jcrossley3maybe wrap it in a future?17:34
jcrossley3or better to use a daemon, actually17:34
jcrossley3that way you can tear it down when the war is undeployed17:34
jodarocore.async ftw for now17:34
jcrossley3or that, yeah :)17:35
jodaroshould be pushing my hystrix-stream thinger up to clojars today, too17:35
jodarofyi17:35
jcrossley3cool17:35
jodarogotta test it out on my cluster first17:36
jodarobut17:36
jcrossley3fwiw, http://immutant.org/documentation/2.0.2/apidoc/immutant.daemons.html17:36
jbossbotTitle: immutant.daemons documentation17:36
jodarocould be useful for the 3-4 other people using immutant and hystrix17:36
jcrossley3:)17:36
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)17:37
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has joined #immutant17:38
jodarodaemons are always singletons, is that correct?17:39
jcrossley3i think so, yeah17:39
jcrossley3otherwise they don't have a lot of value17:39
jodaroyeah, looks like it17:39
jodaroyeah, i need multiple ones of this guy17:39
jcrossley3because you can always register a callback with at-exit to teardown any resources used by core.async or whatever17:40
jodarohe's using clj-kafka with a consumer group to pull stuff off a topic and process it (at great expense, sometimes)17:40
jodaroso the more the merrier17:40
jcrossley3http://immutant.org/documentation/2.0.2/apidoc/immutant.util.html#var-at-exit17:41
jbossbotTitle: immutant.util documentation17:41
jodaroawesome17:42
jodarothanks17:42
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 265 seconds)17:43
*** agarman <agarman!~agarman@169.130.108.20> has joined #immutant17:50
jodarolooks like async/thread did the trick for now17:55
jodaroi'll clean it up later (bwahahah)17:56
*** danielglauser <danielglauser!~danielgla@75-148-43-81-Colorado.hfc.comcastbusiness.net> has quit IRC (Remote host closed the connection)18:03
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Remote host closed the connection)18:14
*** jcrossley3 is now known as jcrossley3-away18:14
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)18:24
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant18:32
*** danielglauser <danielglauser!~danielgla@75-148-43-81-Colorado.hfc.comcastbusiness.net> has joined #immutant18:33
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has joined #immutant19:26
*** agarman <agarman!~agarman@169.130.108.20> has quit IRC (Ping timeout: 246 seconds)19:28
*** jcrossley3-away is now known as jcrossley319:30
tcrawleyjcrossley3: couple of things:19:33
tcrawley1. setting an idle timeout for undertow does the trick, almost19:33
jcrossley31. yay!19:33
jcrossley3and b?19:33
tcrawleyit closes the zombie sockets, but doesn't trigger our own close callback, since we were lacking the correct callback19:33
tcrawley(that's 1a)19:33
tcrawleyb. in-container, we get no timeout by default, and can't set IDLE_TO19:34
tcrawleythere is a setTimeout() on an async context, but it's an absolute time from dispatch() -> complete()19:34
tcrawleyeven if you are active in between19:34
tcrawleyso, I'm considering:19:35
tcrawleyA. an :idle-timeout option to as-channel (so per-channel)19:35
tcrawleyII. each channel then updates a ts on each send (and recv for websockets)19:35
tcrawleythirdly. a reaper thread that closes any channels where the timeout has expired19:36
tcrawleymaybe with no default value?19:36
jcrossley3what did you mean by "lacking the correct callback"?19:37
tcrawleywe don't currently register a callback on the exchange's connection, and without that, we don't get notified when lower plumbing closes it19:38
tcrawleythis.exchange.getConnection().addCloseListener(new ServerConnection.CloseListener() {...19:38
jcrossley3but we could, couldn't we?19:39
jcrossley3i'm not sure what you're proposing, exactly19:40
jcrossley3register the correct callback and use IDLE_TO ooc but use a reaper ic?19:41
tcrawleyI propose a reaper in all cases19:41
tcrawleybecause the IDLE_TO is server-wide19:41
tcrawleyand applies to any request, not just async ones19:41
tcrawleybut yes, we need to add the above callback either way. I just mentioned it because setting IDLE_TO itself isn't enough of a workaround for the sente issue19:42
tcrawleyhaving a per-channel TO addresses the WS timeout jira as well, just in a different way than I thought when I filed it19:43
jcrossley3i don't feel great about adding a reaper, but i can't think of a better alternative19:43
tcrawleyIMMUTANT-52319:43
jbossbotjira [IMMUTANT-523] support idle timeouts for Websockets [Open (Unresolved) Feature Request, Major, Unassigned] https://issues.jboss.org/browse/IMMUTANT-52319:43
tcrawleyyeah, me either :(19:43
tcrawleyI'm not going to implement this now, just trying to think it through19:44
jcrossley3kk!19:44
tcrawleywe can mull/discuss/fight for a few weeks if we want19:44
jcrossley3i prefer "encourage with love and respect"19:47
tcrawleywe can mull/discuss/fight/"encourage with love and respect" for a few weeks if we want19:48
jcrossley3kk!19:48
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has joined #immutant19:56
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has quit IRC (Remote host closed the connection)20:18
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Remote host closed the connection)20:53
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)21:00
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has joined #immutant21:02
*** bbrowning is now known as bbrowning_away21:17
*** lanceball is now known as lance|afk21:25
*** dm3 <dm3!~dm3@pub082136107106.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)21:45
*** bitpimp <bitpimp!~pfrench@unaffiliated/bitpimp> has quit IRC (Quit: bitpimp)21:52
*** gphillips <gphillips!~gphillips@169.130.108.37> has joined #immutant21:53
tcrawleyjcrossley3: I think I found a better solution for Sente: https://github.com/ptaoussanis/sente/issues/150#issuecomment-12576500121:57
jcrossley3reading21:58
*** gphillips <gphillips!~gphillips@169.130.108.37> has quit IRC (Ping timeout: 244 seconds)21:58
tcrawleyit turns out that sente doesn't hold on to all of the old connections, it just replaces the last one with the most recent21:58
tcrawleyso it could then close the last one then21:58
jcrossley3but what if the client never reconnects?21:59
tcrawleyhmm22:00
tcrawleythen you'd still need a timeout22:00
tcrawleyor a heartbeat22:00
jcrossley3hmm22:02
*** tcrawley is now known as tcrawley-away22:07
*** qwerty_nor <qwerty_nor!~Thunderbi@37.229.49.175> has quit IRC (Ping timeout: 244 seconds)22:15
*** bitpimp <bitpimp!~pfrench@unaffiliated/bitpimp> has joined #immutant22:22
*** bitpimp <bitpimp!~pfrench@unaffiliated/bitpimp> has quit IRC (Quit: bitpimp)22:44
*** xeqi <xeqi!uid81119@gateway/web/irccloud.com/x-xgejrvoxyuvbvnpc> has joined #immutant23:02
*** danielglauser <danielglauser!~danielgla@75-148-43-81-Colorado.hfc.comcastbusiness.net> has quit IRC (Remote host closed the connection)23:05
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has joined #immutant23:37
*** bostonaholic <bostonaholic!~textual@97-124-165-7.hlrn.qwest.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)23:47
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Ping timeout: 256 seconds)23:58

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!