Comments (7)
@ptaoussanis I went back and re-ran the rake
command to see again what had happened and why I got worried it wasn't working. I admit I didn't investigate too closely because I found I was able to run lien test org.httpkit.client-test
so I just focused on that. And BTW those specific tests, including the new ones I added, all passed.
This is what happened. I just wasn't patient enough. When it gets to testing org.httpkit.ws-test
it starts emitting the same warning about worker threads every 10 seconds or so, and initially I thought something was stuck in a loop and I cancelled it. But this time I let it go (I came over here to write this comment) and after a dozen or so of those, it completes.
And again, the results shown above are in my fork with the new client tests.
from http-kit.
@wevre Hi Mike,
Thanks for the clear info, that's very helpful! Would be happy to take a look at a PR to add options to match clj-http
! š š
from http-kit.
Is there a recommended Java version to use when running the tests? I'm currently running with OpenJDK Temurin-21.0.1+12 but not all the tests are compiling/passing.
[Edit] Nevermind. I'm able to run lein test org.httpkit.client-test
and I'll just focus on that.
from http-kit.
@wevre To clarify: the tests fail on your system even as of the current master, or only after your changes?
The tests aren't unusually sensitive to JVM version as far as I'm aware, and are passing with at least OpenJDK 21 and 17.
Could you please share the failure you're seeing?
from http-kit.
BTW I've just updated the CI tests to cover Corretto OpenJDK 17, 19, and 21 - all of which seem okay on the current master š
from http-kit.
Is it possible to use httpkit as a :local/root
dependency? It must be, right?
I wanted to test the fork directly in my project to do some Stripe calls, but when I start up my system/server (I'm using Integrant) I get an error that:
{:type java.io.FileNotFoundException
:message "Could not locate httpkit/with_channel__init.class, httpkit/with_channel.clj or httpkit/with_channel.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name."
:at [clojure.lang.RT load "RT.java" 462]}
The more I think about this, I think it is an issue with Integrant and attempting to reload changed namespaces. But why does it think that the macro org.httpkit.server/with-channel
is a namespace?
UPDATE: I found a with-channel
namespace, under 'resources/clj-kondo.exports'. I'm not familiar with exactly what that is, but I nuked it and am able to now work with my fork as a :local/root
deps. I tested :nested-param-style
:indexed
and it worked.
from http-kit.
Related Issues (20)
- Issue preventing non-keep-alive benchmarks HOT 1
- Race condition in TimerService.scheduleTask HOT 2
- Ring websocket API support HOT 4
- Problem in native-image and HttpUtils when using virtual threads HOT 11
- 2.8.0-beta2 has CIDER dependencies HOT 3
- CURL and finagle failing to parse :set-cookies with '\n' HOT 13
- Unix socket benchmark HOT 1
- It will turn headers into camel format HOT 2
- logger-warn gets rebound HOT 1
- logger-warn and error-warn are passed in wrong order to HttpServer constructor HOT 1
- Requests which throw java.net.ConnectException may actually succeed HOT 3
- Request Map doesn't contain information about authority HOT 8
- http-kit v2.8.0-RC1 HOT 1
- http-kit v2.8.0 final HOT 1
- Consider adding `Content-Type: text/plain` to HTTP 500 response in `org.httpkit.server.HttpHandler#run` HOT 6
- v2.7.0 SNI change broke connections to plain IP addresses with SSLHandshakeException "Hostname or IP address is undefined." HOT 8
- WebTransport support HOT 2
- NoSuchMethodError on projects AOT'd on java 21 but run on earlier java versions HOT 13
- [Proposal][Client] Consider more idiomatic bridges with JVM async paradigms HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-kit.