HTTP client app hangs on after all work done

53 views
Skip to first unread message

Marko Topolnik

unread,
Apr 19, 2013, 4:14:27 AM4/19/13
to alep...@googlegroups.com
I execute just this code:

(run-pipeline
 (http-request {:method :get :url "http://localhost/test"})
 (fn [resp]
   (println "response" (update-in resp [:body] decode-json))))

and the application hangs on after printing the response. Thread dump shows lamina-scheduler-n threads (daemons, so shouldn't be causing trouble), and some Netty threads: Hashed wheel timer #n, and New I/O boss #n. 

What function should I call to clean up? I'm running with:

[org.clojure/clojure "1.5.1"]
[aleph "0.3.0-beta16" :exclusions [lamina]]
[lamina "0.5.0-beta15"]

(lamina-beta14 has dep issues with yammer metrics)

-marko

Zach Tellman

unread,
Apr 19, 2013, 2:41:12 PM4/19/13
to alep...@googlegroups.com
The issue here is that clients share an NioClientSocketChannelFactory [1].  I've pushed a change to 0.3.0-SNAPSHOT which makes those shared threads daemons, which should fix your issue.

By the way, aleph beta16 already targets lamina beta15, so the exclusions in your project.clj shouldn't be necessary.

Zach





-marko

--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages