Fork me on GitHub
#yada
<
2015-10-28
>
stijn09:10:17

@malcolmsparks: this is the minimal example

stijn09:10:20

(aleph.http/start-server
    (bidi.ring/make-handler
      ["" (bidi.ring/->Resources {:prefix "META-INF/resources/webjars/swagger-ui/2.1.1"})])
    {:port 3001
     :executor (aleph.flow/fixed-thread-executor 4)})

stijn09:10:21

$ ab -c 3 -n 1000 

stijn09:10:25

Concurrency Level:      3
Time taken for tests:   1.034 seconds
Complete requests:      1000
Failed requests:        0

stijn09:10:33

ab -c 20 -n 1000 

stijn09:10:47

Concurrency Level:      20
Time taken for tests:   1.132 seconds
Complete requests:      1000
Failed requests:        8
   (Connect: 0, Receive: 0, Length: 8, Exceptions: 0)

stijn09:10:02

no yada involved, only aleph & bidi

stijn09:10:13

deps:

[aleph "0.4.1-beta1"]
                 [bidi "1.21.1"]
                 [org.webjars/swagger-ui "2.1.1"]

stijn09:10:48

I'll create an issue for aleph

stijn09:10:12

the problem also surfaces when using compojure.route/resources

stijn09:10:17

the thing is, I can't even run that test with ring & jetty (the too many open files problem), but at least it starts disconnecting and not returning 200/OK