Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2020-01-29 13:13:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-streaming-commons (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-streaming-commons.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-streaming-commons"

Wed Jan 29 13:13:17 2020 rev:19 rq:766989 version:0.2.1.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
    2019-12-27 13:57:53.380789382 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new.26092/ghc-streaming-commons.changes
   2020-01-29 13:14:07.602039351 +0100
@@ -1,0 +2,8 @@
+Mon Jan  6 09:54:59 UTC 2020 - [email protected]
+
+- Update streaming-commons to version 0.2.1.2.
+  ## 0.2.1.2
+
+  * Update `defaultReadBufferSize` to use system default instead of hardcoded 
value [#54](https://github.com/fpco/streaming-commons/issues/54)
+
+-------------------------------------------------------------------

Old:
----
  streaming-commons-0.2.1.1.tar.gz

New:
----
  streaming-commons-0.2.1.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-streaming-commons.spec ++++++
--- /var/tmp/diff_new_pack.JnWBMq/_old  2020-01-29 13:14:14.686042973 +0100
+++ /var/tmp/diff_new_pack.JnWBMq/_new  2020-01-29 13:14:14.690042975 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-streaming-commons
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %global pkg_name streaming-commons
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.2.1.1
+Version:        0.2.1.2
 Release:        0
 Summary:        Common lower-level functions needed by various streaming data 
libraries
 License:        MIT

++++++ streaming-commons-0.2.1.1.tar.gz -> streaming-commons-0.2.1.2.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.1/ChangeLog.md 
new/streaming-commons-0.2.1.2/ChangeLog.md
--- old/streaming-commons-0.2.1.1/ChangeLog.md  2019-06-05 14:57:19.000000000 
+0200
+++ new/streaming-commons-0.2.1.2/ChangeLog.md  2020-01-05 13:26:59.000000000 
+0100
@@ -1,5 +1,9 @@
 # ChangeLog for streaming-commons
 
+## 0.2.1.2
+
+* Update `defaultReadBufferSize` to use system default instead of hardcoded 
value [#54](https://github.com/fpco/streaming-commons/issues/54)
+
 ## 0.2.1.1
 
 * Fix a failing test case (invalid `ByteString` copying), does not affect 
library itself
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.1/Data/Streaming/Network.hs 
new/streaming-commons-0.2.1.2/Data/Streaming/Network.hs
--- old/streaming-commons-0.2.1.1/Data/Streaming/Network.hs     2018-06-28 
18:01:46.000000000 +0200
+++ new/streaming-commons-0.2.1.2/Data/Streaming/Network.hs     2020-01-05 
13:26:59.000000000 +0100
@@ -94,7 +94,7 @@
 import qualified Network.Socket as NS
 import Data.Streaming.Network.Internal
 import Control.Concurrent (threadDelay)
-import Control.Exception (IOException, try, SomeException, throwIO, 
bracketOnError)
+import Control.Exception (IOException, try, SomeException, throwIO, 
bracketOnError, bracket)
 import Network.Socket (Socket, AddrInfo, SocketType)
 import Network.Socket.ByteString (recv, sendAll)
 import System.IO.Error (isDoesNotExistError)
@@ -108,7 +108,7 @@
 import Control.Monad (forever)
 import Data.IORef (IORef, newIORef, atomicModifyIORef)
 import Data.Array.Unboxed ((!), UArray, listArray)
-import System.IO.Unsafe (unsafePerformIO)
+import System.IO.Unsafe (unsafePerformIO, unsafeDupablePerformIO)
 import System.Random (randomRIO)
 import System.IO.Error (isFullErrorType, ioeGetErrorType)
 #if WINDOWS
@@ -263,8 +263,10 @@
 bindRandomPortUDP :: HostPreference -> IO (Int, Socket)
 bindRandomPortUDP = bindRandomPortGen NS.Datagram
 
+{-# NOINLINE defaultReadBufferSize #-}
 defaultReadBufferSize :: Int
-defaultReadBufferSize = 32768
+defaultReadBufferSize = unsafeDupablePerformIO $
+  bracket (NS.socket NS.AF_INET NS.Stream 0) NS.close (\sock -> 
NS.getSocketOption sock NS.RecvBuffer)
 
 #if !WINDOWS
 -- | Attempt to connect to the given Unix domain socket path.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.1/README.md 
new/streaming-commons-0.2.1.2/README.md
--- old/streaming-commons-0.2.1.1/README.md     2018-01-31 16:13:39.000000000 
+0100
+++ new/streaming-commons-0.2.1.2/README.md     2020-01-05 07:08:47.000000000 
+0100
@@ -4,8 +4,7 @@
 Common lower-level functions needed by various streaming data libraries.
 Intended to be shared by libraries like conduit and pipes.
 
-[![Build 
Status](https://travis-ci.org/fpco/streaming-commons.svg)](https://travis-ci.org/fpco/streaming-commons)
-[![Build 
status](https://ci.appveyor.com/api/projects/status/gn0gn4po97su2iyk/branch/master?svg=true)](https://ci.appveyor.com/project/snoyberg/streaming-commons/branch/master)
+[![Build 
Status](https://dev.azure.com/fpco/streaming-commons/_apis/build/status/fpco.streaming-commons?branchName=master)](https://dev.azure.com/fpco/streaming-commons/_build/latest?definitionId=2&branchName=master)
 
 Dependencies
 ------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.1/streaming-commons.cabal 
new/streaming-commons-0.2.1.2/streaming-commons.cabal
--- old/streaming-commons-0.2.1.1/streaming-commons.cabal       2019-06-05 
14:57:19.000000000 +0200
+++ new/streaming-commons-0.2.1.2/streaming-commons.cabal       2020-01-05 
13:26:59.000000000 +0100
@@ -1,5 +1,5 @@
 name:                streaming-commons
-version:             0.2.1.1
+version:             0.2.1.2
 synopsis:            Common lower-level functions needed by various streaming 
data libraries
 description:         Provides low-dependency functionality commonly needed by 
various streaming data libraries, such as conduit and pipes.
 homepage:            https://github.com/fpco/streaming-commons
@@ -45,7 +45,7 @@
                        Data.Text.Internal.Encoding.Utf16
                        Data.Text.Internal.Encoding.Utf32
 
-  build-depends:       base >= 4.7 && < 5
+  build-depends:       base >= 4.8 && < 5
                      , array
                      , async
                      , bytestring
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/streaming-commons-0.2.1.1/test/Data/Streaming/NetworkSpec.hs 
new/streaming-commons-0.2.1.2/test/Data/Streaming/NetworkSpec.hs
--- old/streaming-commons-0.2.1.1/test/Data/Streaming/NetworkSpec.hs    
2016-09-19 14:29:36.000000000 +0200
+++ new/streaming-commons-0.2.1.2/test/Data/Streaming/NetworkSpec.hs    
2020-01-05 13:26:59.000000000 +0100
@@ -14,6 +14,10 @@
 
 spec :: Spec
 spec = do
+    describe "getDefaultReadBufferSize" $ do
+        it "sanity" $ do
+            getReadBufferSize (clientSettingsTCP 8080 "localhost") >= 4096 
`shouldBe` True
+
     describe "getUnassignedPort" $ do
         it "sanity" $ replicateM_ 100000 $ do
             port <- getUnassignedPort


Reply via email to