Thursday, 2015-09-03

*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant00:22
*** conan_ <conan_!~conan@mdproctor.plus.com> has quit IRC (Quit: Computer has gone to sleep.)00:55
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 244 seconds)00:55
*** bitpimp <bitpimp!~pfrench@unaffiliated/bitpimp> has quit IRC (Quit: bitpimp)01:06
*** conan <conan!~conan@mdproctor.plus.com> has joined #immutant01:48
*** deadghost <deadghost!~deadghost@175.144.182.62> has joined #immutant02:07
*** deadghost <deadghost!~deadghost@175.144.182.62> has quit IRC (Ping timeout: 268 seconds)02:33
*** danielglauser <danielglauser!~danielgla@2601:282:4200:c210:a1e4:8ba6:7123:4cd1> has quit IRC ()02:34
*** deadghost <deadghost!~deadghost@175.144.182.62> has joined #immutant02:38
*** conan <conan!~conan@mdproctor.plus.com> has quit IRC (Quit: Computer has gone to sleep.)02:46
*** danielglauser <danielglauser!~danielgla@2601:282:4200:c210:a1e4:8ba6:7123:4cd1> has joined #immutant02:59
*** je <je!~je@x1-6-c0-3f-0e-f8-01-dc.cpe.webspeed.dk> has joined #immutant05:42
*** je <je!~je@x1-6-c0-3f-0e-f8-01-dc.cpe.webspeed.dk> has quit IRC (Ping timeout: 240 seconds)05:54
*** je <je!~je@109.202.140.162> has joined #immutant06:40
*** marianoguerra <marianoguerra!~marianogu@p4FDBE513.dip0.t-ipconnect.de> has joined #immutant07:24
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has joined #immutant07:24
*** deadghost <deadghost!~deadghost@175.144.182.62> has quit IRC (Ping timeout: 268 seconds)08:07
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant08:44
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 265 seconds)10:35
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant10:50
*** qwerty_nor <qwerty_nor!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has joined #immutant10:52
*** qwerty_nor1 <qwerty_nor1!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has joined #immutant10:56
*** qwerty_nor <qwerty_nor!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has quit IRC (Ping timeout: 272 seconds)10:57
*** qwerty_nor1 is now known as qwerty_nor10:57
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 252 seconds)11:39
*** qwerty_nor1 <qwerty_nor1!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has joined #immutant11:45
*** qwerty_nor <qwerty_nor!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has quit IRC (Ping timeout: 268 seconds)11:46
*** qwerty_nor1 is now known as qwerty_nor11:46
*** je <je!~je@109.202.140.162> has quit IRC (Ping timeout: 260 seconds)11:56
*** je <je!~je@109.202.140.162> has joined #immutant12:09
*** bbrowning_away is now known as bbrowning12:14
*** conan_ <conan_!~conan@mdproctor.plus.com> has joined #immutant12:16
*** agarman <agarman!~agarman@169.130.108.20> has joined #immutant12:40
*** qwerty_nor1 <qwerty_nor1!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has joined #immutant12:42
*** qwerty_nor <qwerty_nor!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has quit IRC (Ping timeout: 255 seconds)12:44
*** qwerty_nor1 is now known as qwerty_nor12:44
*** lance|afk is now known as lanceball12:56
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant13:04
*** jcrossley3-away is now known as jcrossley313:06
*** qwerty_nor <qwerty_nor!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has quit IRC (Remote host closed the connection)13:16
*** qwerty_nor <qwerty_nor!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has joined #immutant13:16
*** tcrawley-away is now known as tcrawley13:17
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Quit: leaving)13:19
*** bobmcw <bobmcw!~bobmcw@va-67-233-84-8.dhcp.embarqhsd.net> has joined #immutant13:19
*** bobmcw <bobmcw!~bobmcw@va-67-233-84-8.dhcp.embarqhsd.net> has quit IRC (Changing host)13:19
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has joined #immutant13:19
*** qwerty_nor <qwerty_nor!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has quit IRC (Ping timeout: 240 seconds)13:29
*** qwerty_nor1 <qwerty_nor1!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has joined #immutant13:29
*** qwerty_nor1 is now known as qwerty_nor13:31
*** je <je!~je@109.202.140.162> has quit IRC (Ping timeout: 244 seconds)13:36
*** danielglauser <danielglauser!~danielgla@2601:282:4200:c210:a1e4:8ba6:7123:4cd1> has quit IRC (Remote host closed the connection)13:48
*** egli <egli!~user@alouette.sbs.ch> has quit IRC (Read error: No route to host)13:53
*** agarman <agarman!~agarman@169.130.108.20> has quit IRC (Ping timeout: 244 seconds)13:58
*** qmx <qmx!~qmx@redhat/jboss/qmx> has joined #immutant13:59
*** qmx <qmx!~qmx@redhat/jboss/qmx> has left #immutant ("WeeChat 1.0.1")13:59
*** qwerty_nor <qwerty_nor!~Thunderbi@p180157-ipngn200503kyoto.kyoto.ocn.ne.jp> has quit IRC (Ping timeout: 268 seconds)14:16
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 256 seconds)14:44
*** agarman <agarman!~agarman@169.130.108.37> has joined #immutant14:48
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant14:59
*** mgoldmann is now known as mgoldmann|away15:11
*** cap10morgan <cap10morgan!~cap10morg@75-148-43-81-Colorado.hfc.comcastbusiness.net> has joined #immutant15:12
*** bbrowning is now known as bbrowning_away15:15
*** agarman <agarman!~agarman@169.130.108.37> has quit IRC (Remote host closed the connection)15:18
*** agarman <agarman!~agarman@169.130.108.20> has joined #immutant15:19
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 250 seconds)15:41
*** bbrowning_away is now known as bbrowning16:11
*** lanceball is now known as lance|afk16:22
*** danielglauser <danielglauser!~danielgla@2601:282:4200:c210:15f3:7efa:41b1:c228> has joined #immutant16:31
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant16:32
*** GitHub195 <GitHub195!~GitHub195@192.30.252.34> has joined #immutant16:58
GitHub195[lein-immutant] tobias pushed 1 new commit to master: http://git.io/vGH5M16:58
GitHub195lein-immutant/master 4bfafe0 Toby Crawley: Update to latest fntest.16:58
*** GitHub195 <GitHub195!~GitHub195@192.30.252.34> has left #immutant16:58
jbossbotTitle: Update to latest fntest. · immutant/lein-immutant@4bfafe0 · GitHub16:58
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 250 seconds)16:58
*** tcrawley is now known as tcrawley-away17:36
*** deadghost <deadghost!~deadghost@115.133.72.245> has joined #immutant17:39
*** lance|afk is now known as lanceball18:24
*** je <je!~je@x1-6-c0-3f-0e-f8-01-dc.cpe.webspeed.dk> has joined #immutant18:27
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has joined #immutant18:29
*** deadghost <deadghost!~deadghost@115.133.72.245> has quit IRC (Ping timeout: 244 seconds)18:44
*** je <je!~je@x1-6-c0-3f-0e-f8-01-dc.cpe.webspeed.dk> has quit IRC (Ping timeout: 264 seconds)19:01
*** aaronc <aaronc!60f85725@gateway/web/freenode/ip.96.248.87.37> has joined #immutant19:14
*** jcrossle_ <jcrossle_!~user@71-90-202-1.dhcp.stls.mo.charter.com> has joined #immutant19:24
*** jcrossley3 <jcrossley3!~user@71-90-202-1.dhcp.stls.mo.charter.com> has quit IRC (Ping timeout: 240 seconds)19:26
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant19:28
*** jcrossle_ is now known as jcrossley319:35
aaroncHi, I have some questions about getting immutant to work together with pedestal and websockets. Would this be the place to ask? I tried joining the user mailing list with no success.19:36
jcrossley3aaronc: of course! sorry about the ML. we're having issues with our ISP.20:00
*** lanceball is now known as lance|afk20:03
aaroncjcrossley3: great! sorry to hear about the ML20:19
aaroncso I actually have a pretty good understanding at this point of how pedestal is setting up its servlet and how immutant configures its servlet when used in a container20:19
jcrossley3aaronc: there are some folks in the slack channel, too, if you prefer that20:19
aaroncis that better than here?20:20
jcrossley3nah20:20
aaroncokay20:20
aaroncanyway, I figured I could just try to configure pedestal's servlet similar to immutant's servlet and override init to configure the websocket endpoint20:20
aaroncwell this doesn't work as expected and i realize that immutant is only using this servlet config when in a container20:21
jcrossley3yeah, that sounds correct :-/20:21
jcrossley3does your init get called?20:22
jcrossley3do you get an error from as-channel?20:22
aaroncyes, it does20:22
aaroncwell the endpoint modifyHandshake is never called20:23
aaroncso the request just goes through the normal servlet handling and there was an error with as-channel, but I can get past that by setting :handler-type :servlet20:23
aaroncbut still no channel20:23
aaronceven an ajax channel would be fine for now, but that doesn't work...20:24
jcrossley3hmm20:24
jcrossley3let me look at the code for a minute20:25
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Ping timeout: 256 seconds)20:32
aaroncbtw i did notice that wunderboss/mount also sets a :filter-map on opts only for container mode. tried tweaking that too, but no luck20:32
jcrossley3aaronc: we may need to get tcrawley-away involved in this. i'm concerned the in-container? paths in here aren't being taken for your raw servlet: https://github.com/immutant/immutant/blob/master/web/src/immutant/web/internal/wunderboss.clj#L51-L7320:32
jcrossley3aaronc: do you by chance have a small reproduceable test case?20:33
jcrossley3it *may* be as simple as checking for a servlet in addition to in-container? but i'm rarely that lucky20:34
aaroncyeah so the in-container? path that I think matters is on line 60. if we're passing in a servlet the if on line 52 should bypass the in-container? on 5420:35
aaroncI did modify line 54 to make that work without a container, but it doesn't help20:35
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has quit IRC (Remote host closed the connection)20:37
aaroncI don't really have a small reproducible case yet, but with any immutant app that uses a ring handler, you can wrap the handler in immutant.web.internal.servlet/create-servlet when calling web/run20:37
aaroncthat has the effect of creating the same servlet as would be used in a container20:37
jcrossley3aaronc: does your init ultimately invoke servlet/add-endpoint?20:37
aaronceverything else in the app would work but websockets wouldn't20:37
aaroncyes, as far as I can tell - I have logging up to that point20:38
aaroncthe endpoint just never has its own methods called20:38
jcrossley3aaronc: i think the critical line may be 5620:39
jcrossley3that init-handler is setting a threadlocal that i think you may be lacking20:40
jcrossley3aaronc: i'd like to give tcrawley-away a chance to weigh in. he's much more familiar with this code. he s/b around later or in the morning.20:41
aaroncline 56 of wunderboss.clj?20:41
jcrossley3yes20:41
aaroncokay, great. thanks for your help!20:41
jcrossley3immutant.web.internal.undertow/create-websocket-init-handler20:42
aaronci'm thinking it must have something to do with how wunderboss configures undertow when not in container mode...20:42
jcrossley3i guess the question ultimately comes down to "do we support websockets when the handler is a servlet and we're not in a container?"20:43
aaroncso there are basically two different paths immutant takes for configuring undertow right? one that's for containers using servlets and there other using undertow internally20:43
*** lance|afk is now known as lanceball20:43
aaroncyeah, that would basically be it20:43
aaroncand if not, what would be the way to get there...20:43
aaroncdo websockets definitely work in the container mode?20:43
jcrossley3aaronc: right, i would consider it a bug if the answer is no :)20:44
jcrossley3aaronc: yes20:44
aaronccool20:44
jcrossley3we have integration tests for that, i'm sure.20:44
jcrossley3we probably don't have them for your scenario, though, as most pedestal peeps are content to use its async features rather than ws20:45
jcrossley3aaronc: so you're the oddball ;)20:45
aaroncyeah, i guess so...20:47
jcrossley3i kid, of course, it's an edge case we should cover. i'm curious why you're combining ws with pedestal, though.20:48
aaroncpedestal's async stuff doesn't seem to quite be a replacement for ws20:48
aaronci guess i could accomplish the same thing, but then i'd need to do a lot of other low level handling20:51
aaronci just want a similar bi-directional channel with messages that are clearly delimited20:51
jcrossley3so what's pedestal buying you?20:52
aaroncwell, we're mainly using it for things that need a rest api20:55
jcrossley3huh20:55
aaroncthere's actually some legacy code in pedestal that we want to integrate with something that will primarily use a ws api in the future20:56
jcrossley3isn't liberator the clojure lib for rest api's?20:56
jcrossley3"legacy code in pedestal" is kinda funny :)20:58
aaroncwell it was a year or two ago lol20:59
*** bbrowning is now known as bbrowning_away21:15
*** jcrossle_ <jcrossle_!~user@71-90-202-1.dhcp.stls.mo.charter.com> has joined #immutant21:22
*** jcrossley3 <jcrossley3!~user@71-90-202-1.dhcp.stls.mo.charter.com> has quit IRC (Remote host closed the connection)21:22
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 246 seconds)21:39
*** jcrossle_ is now known as jcrossley321:51
*** lanceball is now known as lance|afk22:00
*** cap10morgan <cap10morgan!~cap10morg@75-148-43-81-Colorado.hfc.comcastbusiness.net> has quit IRC (Quit: (null))22:04
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has joined #immutant22:25
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has quit IRC (Remote host closed the connection)22:31
*** lance|afk is now known as lanceball22:52
*** seangrove <seangrove!~user@c-50-174-77-118.hsd1.ca.comcast.net> has quit IRC (Ping timeout: 256 seconds)22:55
*** tcrawley-away is now known as tcrawley23:05
*** danielglauser <danielglauser!~danielgla@2601:282:4200:c210:15f3:7efa:41b1:c228> has quit IRC (Remote host closed the connection)23:10
tcrawleyaaronc: I think I intentionally ignored the websockets-with-a-servet-outside-of-the-container case, since I didn't think it would be useful to anyone23:15
tcrawleysince, at the time, pedestal didn't support ws23:15
tcrawleyand that was the only servlet-out-of-container case I could come up with23:15
tcrawleybut I'm happy to fix this up23:15
jcrossley3ta-da!23:15
tcrawleyjcrossley3: morning!23:16
jcrossley3tcrawley: welcome home!23:16
tcrawleydonkey23:16
jcrossley3tcrawley: holler if you want to bang heads on that some time (not now)23:17
tcrawleysure, I can't do it now either. maybe we can take a lookie in the morning?23:17
jcrossley3kk!23:18
*** tcrawley is now known as tcrawley-away23:26
*** lanceball is now known as lance|afk23:31

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