Comments (17)
lts-6.11 completes without error for my project
% diff <(stack --resolver=lts-6.11 list-dependencies) <(stack --resolver=lts-6.12 list-dependencies)
43c43
< connection 0.2.5
---
> connection 0.2.6
from hs-connection.
Sorry for your hair !
could you try with the latest cryptonite commit 8908af32168f6676b8f98b509ab5376706ab5660 to see if that works for you ?
from hs-connection.
My hair is ok :) Here's a script that will reproduce
#!/usr/bin/env stack
-- stack --resolver lts-6.12 --install-ghc runghc --package conduit --package lens --package amazonka --package amazonka-s3
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
import Control.Lens
import Control.Monad.IO.Class
import Data.Conduit
import qualified Data.Conduit.List as CL
import Data.Monoid
import Data.String
import Data.Foldable
import Data.Text (Text)
import qualified Data.Text.IO as TI
import Network.AWS
import Network.AWS.Data
import Network.AWS.S3
main = do
env <- newEnv NorthVirginia Discover
let say = liftIO . TI.putStrLn
val
:: ToText a
=> Maybe a -> Text
val = maybe "Nothing" toText
lat v = maybe mempty (mappend " - " . toText) (v ^. ovIsLatest)
key v = val (v ^. ovKey) <> ": " <> val (v ^. ovVersionId) <> lat v
runResourceT . runAWS env $
do say "Listing Buckets .."
bs <- view lbrsBuckets <$> send listBuckets
say $ "Found " <> toText (length bs) <> " Buckets."
forM_ bs $
\(view bName -> b) -> do
say $ "Listing Object Versions in: " <> toText b
paginate (listObjectVersions b) =$=
CL.concatMap (view lovrsVersions) $$
CL.mapM_ (say . mappend " -> " . key)
Run it against any AWS account with some buckets & objects. After about 30 seconds or so it'll crash.
from hs-connection.
change the script to lts-6.11 and it'll work fine
from hs-connection.
I wonder if this is related to erikd-ambiata/test-warp-wai#1 (comment) ?
from hs-connection.
Looks similar @erikd
from hs-connection.
from hs-connection.
dysinger: I'm not sure how to test this script with a non-released version of cryptonite, any idea ?
from hs-connection.
I've tried recreating my issue just using the connection library talking to HTTP and HTTPS servers. Was not able to find anything, suggesting that this was actually a problem with http-client.
from hs-connection.
@erikd: I don't think that's the case, definitely a low level crypto issue. did you use the git version of cryptonite ?
from hs-connection.
Nope, used the 0.19 release version.
from hs-connection.
@erikd I don't think you have the same issue than @dysinger here, this is the BadRecordMac
issue
from hs-connection.
Ah ok, may be a different issue.
from hs-connection.
is this still a bug ? (both connection and tls has new revisions since)
from hs-connection.
Its still a HANDLE
leak as far as I can tell. I tried it with connection 2.7 about a month ago.
I can test again (tomorrow) if you let me know what versions I should be testing.
from hs-connection.
that sounds like a different bug from the BadRecordMac
from hs-connection.
Opened #29 .
from hs-connection.
Related Issues (20)
- Usage with Handle -> IO ()? HOT 4
- Don't get an exception on a timeout HOT 1
- IPv6? HOT 8
- Wait for data with a timeout
- TLSSettingsSimple is too simple, TLSSettings is unwieldy HOT 1
- https://badssl.com/ test failure HOT 2
- Support for HsOpenSSL HOT 1
- Potential open socket leak when TLS handshake fails HOT 2
- Socket/Handle leak in versions 0.2.6 and 0.2.7 HOT 9
- Ambiguous docs on re-using TLS sessions
- Error compiling connection-0.3.0 HOT 2
- sessionResumeOnlyOnce HOT 3
- Confusing docs on connectionGetLine
- Export `globalCertificateStore` field of `ConnectionContext`
- Need away to set socket options on a connection backed by a socket
- Specify whether IPv6 addresses are bracketed in HostName (and export HostName) HOT 1
- HostNotResolved can never happen?
- connection-0.2.5 fails to build with GHC 9.0.2 HOT 5
- Relax upper bound on dependency on `tls` HOT 1
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 hs-connection.