Hello
I'm developing a http server for learning proposes
This HTTP server is very simple: I start a ServerSocket
, thread waits on .accept
and then .submit
the "request work" to a ExecutorPool and loop to .accept
Can I use core.async
to replace this thread-pool
? It will use pipeline-blocking
? If yes, what I put in to-chan
? I create a "dump chan" and a (go (<! dump-chan) (recur) ) ?
https://github.com/souenzzo/ds-http/blob/master/src/br/com/souenzzo/ds_http.clj#L221