Concurrent requests for Java's HTTP Server

316 views
Skip to first unread message

Abhay

unread,
Mar 8, 2010, 8:02:40 AM3/8/10
to Clojure
Hi All,

I have created a small app using the java's base HTTP server shiped
with JDK.

I observed that the HTTP requests cannot execute simultaneously. For
eg, my request 1 is blocking my request 2. As soon as I unblock the
request, other request gets completed.

Does this HTTP Server provides concurrency?

If yes, Its very difficult to believe that a HTTP severs does not
provide concurrency :(

~Abhay


Brendan Ribera

unread,
Mar 8, 2010, 11:36:49 PM3/8/10
to clo...@googlegroups.com
This seems to be more of a Java question than a Clojure one, but I'll take a stab at it anyway. I'm assuming you refer to com.sun.net.httpserver.HttpServer. Per the docs,

"Management of threads can be done external to this object by providing a Executor object. If none is provided a default implementation is used."

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply all
Reply to author
Forward
0 new messages