commit ghc-warp for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2020-08-28 21:41:09

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new.3399 (New)


Package is "ghc-warp"

Fri Aug 28 21:41:09 2020 rev:3 rq:829491 version:3.3.13

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2020-07-09 
13:20:14.553435538 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new.3399/ghc-warp.changes  
2020-08-28 21:41:11.872883279 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:46:37 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.IWFqIW/_old  2020-08-28 21:41:12.836883635 +0200
+++ /var/tmp/diff_new_pack.IWFqIW/_new  2020-08-28 21:41:12.836883635 +0200
@@ -78,7 +78,7 @@
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build




commit ghc-warp for openSUSE:Factory

2020-07-09 Thread root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2020-07-09 13:19:44

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new.3060 (New)


Package is "ghc-warp"

Thu Jul  9 13:19:44 2020 rev:2 rq:819593 version:3.3.13

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2020-06-19 
17:05:48.944882273 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new.3060/ghc-warp.changes  
2020-07-09 13:20:14.553435538 +0200
@@ -1,0 +2,8 @@
+Fri Jun 26 02:00:23 UTC 2020 - psim...@suse.com
+
+- Update warp to version 3.3.13.
+  ## 3.3.13
+
+  * pReadMaker is exported from the Internal module.
+
+---

Old:

  warp-3.3.12.tar.gz

New:

  warp-3.3.13.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.HVBQ2G/_old  2020-07-09 13:20:16.757442504 +0200
+++ /var/tmp/diff_new_pack.HVBQ2G/_new  2020-07-09 13:20:16.761442517 +0200
@@ -19,7 +19,7 @@
 %global pkg_name warp
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:3.3.12
+Version:3.3.13
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT

++ warp-3.3.12.tar.gz -> warp-3.3.13.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.3.12/ChangeLog.md new/warp-3.3.13/ChangeLog.md
--- old/warp-3.3.12/ChangeLog.md2020-05-28 03:17:21.0 +0200
+++ new/warp-3.3.13/ChangeLog.md2020-06-25 04:08:37.0 +0200
@@ -1,3 +1,7 @@
+## 3.3.13
+
+* pReadMaker is exported from the Internal module.
+
 ## 3.3.12
 
 * Fixing HTTP/2 logging relating to status and push.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.3.12/Network/Wai/Handler/Warp/HTTP2/File.hs 
new/warp-3.3.13/Network/Wai/Handler/Warp/HTTP2/File.hs
--- old/warp-3.3.12/Network/Wai/Handler/Warp/HTTP2/File.hs  2020-05-28 
03:17:21.0 +0200
+++ new/warp-3.3.13/Network/Wai/Handler/Warp/HTTP2/File.hs  2020-06-25 
04:08:37.0 +0200
@@ -13,6 +13,9 @@
 import Network.Wai.Handler.Warp.FdCache
 import Network.Wai.Handler.Warp.SendFile (positionRead)
 
+-- | 'PositionReadMaker' based on file descriptor cache.
+--
+-- Since 3.3.13
 pReadMaker :: InternalInfo -> PositionReadMaker
 pReadMaker ii path = do
 (mfd, refresh) <- getFd ii path
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.3.12/Network/Wai/Handler/Warp/Internal.hs 
new/warp-3.3.13/Network/Wai/Handler/Warp/Internal.hs
--- old/warp-3.3.12/Network/Wai/Handler/Warp/Internal.hs2020-05-28 
03:17:21.0 +0200
+++ new/warp-3.3.13/Network/Wai/Handler/Warp/Internal.hs2020-06-25 
04:08:37.0 +0200
@@ -70,6 +70,7 @@
 -- * Misc
   , http2server
   , withII
+  , pReadMaker
   ) where
 
 import System.TimeManager
@@ -79,6 +80,7 @@
 import Network.Wai.Handler.Warp.FdCache
 import Network.Wai.Handler.Warp.FileInfoCache
 import Network.Wai.Handler.Warp.HTTP2
+import Network.Wai.Handler.Warp.HTTP2.File
 import Network.Wai.Handler.Warp.Header
 import Network.Wai.Handler.Warp.Recv
 import Network.Wai.Handler.Warp.Request
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.3.12/warp.cabal new/warp-3.3.13/warp.cabal
--- old/warp-3.3.12/warp.cabal  2020-05-28 03:17:21.0 +0200
+++ new/warp-3.3.13/warp.cabal  2020-06-25 04:08:37.0 +0200
@@ -1,5 +1,5 @@
 Name:warp
-Version: 3.3.12
+Version: 3.3.13
 Synopsis:A fast, light-weight web server for WAI applications.
 License: MIT
 License-file:LICENSE




commit ghc-warp for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2017-09-15 22:24:45

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Fri Sep 15 22:24:45 2017 rev:15 rq:525679 version:3.2.13

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2017-07-21 
22:48:12.590795131 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2017-09-15 
22:24:46.522709689 +0200
@@ -1,0 +2,5 @@
+Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
+
+- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
+
+---



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.fsanX3/_old  2017-09-15 22:24:47.110626863 +0200
+++ /var/tmp/diff_new_pack.fsanX3/_new  2017-09-15 22:24:47.110626863 +0200
@@ -23,8 +23,8 @@
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT
-Group:  Development/Languages/Other
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-array-devel
@@ -51,7 +51,6 @@
 BuildRequires:  ghc-vault-devel
 BuildRequires:  ghc-wai-devel
 BuildRequires:  ghc-word8-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-HTTP-devel
 BuildRequires:  ghc-HUnit-devel
@@ -73,7 +72,7 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
@@ -101,11 +100,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc ChangeLog.md README.md
 
 %changelog




commit ghc-warp for openSUSE:Factory

2017-07-21 Thread root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2017-07-21 22:48:09

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Fri Jul 21 22:48:09 2017 rev:14 rq:511245 version:3.2.13

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2017-06-04 
01:59:16.604881851 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2017-07-21 
22:48:12.590795131 +0200
@@ -1,0 +2,5 @@
+Tue Jul 11 03:02:29 UTC 2017 - psim...@suse.com
+
+- Update to version 3.2.13.
+
+---

Old:

  warp-3.2.12.tar.gz

New:

  warp-3.2.13.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.DgjXs2/_old  2017-07-21 22:48:15.198427291 +0200
+++ /var/tmp/diff_new_pack.DgjXs2/_new  2017-07-21 22:48:15.202426727 +0200
@@ -19,7 +19,7 @@
 %global pkg_name warp
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:3.2.12
+Version:3.2.13
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT

++ warp-3.2.12.tar.gz -> warp-3.2.13.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.12/ChangeLog.md new/warp-3.2.13/ChangeLog.md
--- old/warp-3.2.12/ChangeLog.md2017-05-11 05:41:59.0 +0200
+++ new/warp-3.2.13/ChangeLog.md2017-07-04 05:05:58.0 +0200
@@ -1,3 +1,9 @@
+## 3.2.13
+
+* Tickling HTTP/2 timer. [624](https://github.com/yesodweb/wai/pull/624)
+* Guarantee atomicity of WINDOW_UPDATE increments 
[622](https://github.com/yesodweb/wai/pull/622)
+* Relax HTTP2 headers check [621](https://github.com/yesodweb/wai/pull/621)
+
 ## 3.2.12
 
 * If an empty string is set by setServerName, the Server header is not 
included in response headers [#619](https://github.com/yesodweb/wai/issues/619)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.12/Network/Wai/Handler/Warp/File.hs 
new/warp-3.2.13/Network/Wai/Handler/Warp/File.hs
--- old/warp-3.2.12/Network/Wai/Handler/Warp/File.hs2017-05-11 
05:41:59.0 +0200
+++ new/warp-3.2.13/Network/Wai/Handler/Warp/File.hs2017-07-04 
05:05:58.0 +0200
@@ -6,13 +6,12 @@
 RspFileInfo(..)
   , conditionalRequest
   , addContentHeadersForFilePart
-  , parseByteRanges
+  , H.parseByteRanges
   ) where
 
 import Control.Applicative ((<|>))
 import Data.Array ((!))
-import qualified Data.ByteString as B hiding (pack)
-import qualified Data.ByteString.Char8 as B (pack, readInteger)
+import qualified Data.ByteString.Char8 as B (pack)
 import Data.ByteString (ByteString)
 import Data.Maybe (fromMaybe)
 import Network.HTTP.Date
@@ -24,10 +23,6 @@
 import Network.Wai.Handler.Warp.PackInt
 import Numeric (showInt)
 
-#ifndef MIN_VERSION_http_types
-#define MIN_VERSION_http_types(x,y,z) 1
-#endif
-
 -- $setup
 -- >>> import Test.QuickCheck
 
@@ -99,7 +94,7 @@
 
 
 parseRange :: ByteString -> Integer -> RspFileInfo
-parseRange rng size = case parseByteRanges rng of
+parseRange rng size = case H.parseByteRanges rng of
 Nothing-> WithoutBody H.requestedRangeNotSatisfiable416
 Just []-> WithoutBody H.requestedRangeNotSatisfiable416
 Just (r:_) -> let (!beg, !end) = checkRange r size
@@ -115,46 +110,12 @@
 checkRange (H.ByteRangeFromTo beg end) size = (beg,  min (size - 1) end)
 checkRange (H.ByteRangeSuffix count)   size = (max 0 (size - count), size - 1)
 
--- | Parse the value of a Range header into a 'H.ByteRanges'.
-parseByteRanges :: B.ByteString -> Maybe H.ByteRanges
-parseByteRanges bs1 = do
-bs2 <- stripPrefix "bytes=" bs1
-(r, bs3) <- range bs2
-ranges (r:) bs3
-  where
-range bs2 = do
-(i, bs3) <- B.readInteger bs2
-if i < 0 -- has prefix "-" ("-0" is not valid, but here treated as 
"0-")
-then Just (H.ByteRangeSuffix (negate i), bs3)
-else do
-bs4 <- stripPrefix "-" bs3
-case B.readInteger bs4 of
-Just (j, bs5) | j >= i -> Just (H.ByteRangeFromTo i j, bs5)
-_ -> Just (H.ByteRangeFrom i, bs4)
-ranges front bs3
-| B.null bs3 = Just (front [])
-| otherwise = do
-bs4 <- stripPrefix "," bs3
-(r, bs5) <- range bs4
-ranges (front . (r:)) bs5
-
-stripPrefix x y
-| x `B.isPrefixOf` y = Just (B.drop (B.length x) y)
-| otherwise = Nothing
-
 

commit ghc-warp for openSUSE:Factory

2017-06-03 Thread root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2017-06-04 01:59:14

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Sun Jun  4 01:59:14 2017 rev:13 rq:499739 version:3.2.12

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2017-05-10 
20:50:03.814690732 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2017-06-04 
01:59:16.604881851 +0200
@@ -1,0 +2,5 @@
+Thu May 18 09:52:25 UTC 2017 - psim...@suse.com
+
+- Update to version 3.2.12 with cabal2obs.
+
+---

Old:

  warp-3.2.11.2.tar.gz

New:

  warp-3.2.12.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.3PFi80/_old  2017-06-04 01:59:17.732722517 +0200
+++ /var/tmp/diff_new_pack.3PFi80/_new  2017-06-04 01:59:17.736721952 +0200
@@ -19,7 +19,7 @@
 %global pkg_name warp
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:3.2.11.2
+Version:3.2.12
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT

++ warp-3.2.11.2.tar.gz -> warp-3.2.12.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.11.2/ChangeLog.md 
new/warp-3.2.12/ChangeLog.md
--- old/warp-3.2.11.2/ChangeLog.md  2017-04-13 09:50:05.0 +0200
+++ new/warp-3.2.12/ChangeLog.md2017-05-11 05:41:59.0 +0200
@@ -1,3 +1,7 @@
+## 3.2.12
+
+* If an empty string is set by setServerName, the Server header is not 
included in response headers [#619](https://github.com/yesodweb/wai/issues/619)
+
 ## 3.2.11.2
 
 * Don't throw exceptions when closing a keep-alive connection
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/warp-3.2.11.2/Network/Wai/Handler/Warp/HTTP2/HPACK.hs 
new/warp-3.2.12/Network/Wai/Handler/Warp/HTTP2/HPACK.hs
--- old/warp-3.2.11.2/Network/Wai/Handler/Warp/HTTP2/HPACK.hs   2017-02-23 
12:15:39.0 +0100
+++ new/warp-3.2.12/Network/Wai/Handler/Warp/HTTP2/HPACK.hs 2017-05-11 
05:41:59.0 +0200
@@ -7,6 +7,7 @@
   , hpackDecodeHeader
   , just
   , addNecessaryHeaders
+  , addHeader -- testing
   ) where
 
 import qualified Control.Exception as E
@@ -27,9 +28,12 @@
 
 {-# INLINE addHeader #-}
 addHeader :: Token -> ByteString -> ValueTable -> TokenHeaderList -> 
TokenHeaderList
+addHeader t "" tbl ths = case getHeaderValue t tbl of
+Nothing -> ths
+_   -> filter ((/= tokenServer) . fst) ths
 addHeader t v tbl ths = case getHeaderValue t tbl of
 Nothing -> (t,v) : ths
-Just _  -> ths
+_   -> ths
 
 addNecessaryHeaders :: Context
 -> Rspn
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.11.2/Network/Wai/Handler/Warp/Response.hs 
new/warp-3.2.12/Network/Wai/Handler/Warp/Response.hs
--- old/warp-3.2.11.2/Network/Wai/Handler/Warp/Response.hs  2016-11-20 
16:19:24.0 +0100
+++ new/warp-3.2.12/Network/Wai/Handler/Warp/Response.hs2017-05-11 
05:41:59.0 +0200
@@ -11,6 +11,7 @@
   , warpVersion
   , hasBody
   , replaceHeader
+  , addServer -- testing
   ) where
 
 #ifndef MIN_VERSION_base
@@ -429,7 +430,11 @@
 warpVersion :: String
 warpVersion = showVersion Paths_warp.version
 
+{-# INLINE addServer #-}
 addServer :: HeaderValue -> IndexedHeader -> H.ResponseHeaders -> 
H.ResponseHeaders
+addServer "" rspidxhdr hdrs = case rspidxhdr ! fromEnum ResServer of
+Nothing -> hdrs
+_   -> filter ((/= H.hServer) . fst) hdrs
 addServer serverName rspidxhdr hdrs = case rspidxhdr ! fromEnum ResServer of
 Nothing -> (H.hServer, serverName) : hdrs
 _   -> hdrs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.11.2/Network/Wai/Handler/Warp.hs 
new/warp-3.2.12/Network/Wai/Handler/Warp.hs
--- old/warp-3.2.11.2/Network/Wai/Handler/Warp.hs   2017-01-17 
12:23:30.0 +0100
+++ new/warp-3.2.12/Network/Wai/Handler/Warp.hs 2017-05-11 05:41:59.0 
+0200
@@ -302,7 +302,10 @@
 setInstallShutdownHandler :: (IO () -> IO ()) -> Settings -> Settings
 setInstallShutdownHandler x y = y { settingsInstallShutdownHandler = x }
 
--- | Default server name if application does not set one.
+-- | Default server name to be sent as the \"Server:\" header
+--   if an application does not set one.
+--   If an empty string is set, the \"Server:\" header is not sent.
+--   This is true even if an application set one.
 --
 -- Since 3.0.2
 setServerName :: ByteString -> 

commit ghc-warp for openSUSE:Factory

2017-03-20 Thread root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2017-03-20 17:08:07

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Mon Mar 20 17:08:07 2017 rev:11 rq:477470 version:3.2.11.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2017-02-21 
13:46:02.336774970 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2017-03-20 
17:08:09.585756687 +0100
@@ -1,0 +2,5 @@
+Mon Feb 27 10:12:20 UTC 2017 - psim...@suse.com
+
+- Update to version 3.2.11.1 with cabal2obs.
+
+---

Old:

  warp-3.2.11.tar.gz

New:

  warp-3.2.11.1.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.om6Fli/_old  2017-03-20 17:08:10.545621155 +0100
+++ /var/tmp/diff_new_pack.om6Fli/_new  2017-03-20 17:08:10.549620590 +0100
@@ -19,7 +19,7 @@
 %global pkg_name warp
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:3.2.11
+Version:3.2.11.1
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT

++ warp-3.2.11.tar.gz -> warp-3.2.11.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.11/ChangeLog.md 
new/warp-3.2.11.1/ChangeLog.md
--- old/warp-3.2.11/ChangeLog.md2017-02-02 02:57:32.0 +0100
+++ new/warp-3.2.11.1/ChangeLog.md  2017-02-24 13:00:12.0 +0100
@@ -1,3 +1,8 @@
+## 3.2.11.1
+
+* Move exception handling to top of thread (fixes
+  [#613](https://github.com/yesodweb/wai/issues/613))
+
 ## 3.2.11
 
 * Fixing 10 HTTP2 bugs pointed out by h2spec v2.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.11/Network/Wai/Handler/Warp/Run.hs 
new/warp-3.2.11.1/Network/Wai/Handler/Warp/Run.hs
--- old/warp-3.2.11/Network/Wai/Handler/Warp/Run.hs 2017-02-02 
02:57:32.0 +0100
+++ new/warp-3.2.11.1/Network/Wai/Handler/Warp/Run.hs   2017-02-24 
13:00:12.0 +0100
@@ -263,45 +263,24 @@
  -> Counter
  -> InternalInfo0
  -> IO ()
-fork set mkConn addr app counter ii0 = settingsFork set $ \ unmask ->
+fork set mkConn addr app counter ii0 = settingsFork set $ \unmask ->
+-- Call the user-supplied on exception code if any
+-- exceptions are thrown.
+handle (settingsOnException set Nothing) .
 -- Allocate a new IORef indicating whether the connection has been
 -- closed, to avoid double-freeing a connection
 withClosedRef $ \ref ->
-
--- Run the connection maker to get a new connection, and ensure
--- that the connection is closed. If the mkConn call throws an
--- exception, we will leak the connection. If the mkConn call is
--- vulnerable to attacks (e.g., Slowloris), we do nothing to
--- protect the server. It is therefore vital that mkConn is well
--- vetted.
---
--- We grab the connection before registering timeouts since the
--- timeouts will be useless during connection creation, due to the
--- fact that async exceptions are still masked.
-bracket mkConn (\(conn, _) -> closeConn ref conn `finally` connFree conn)
-$ \(conn, transport) ->
-
--- We need to register a timeout handler for this thread, and
--- cancel that handler as soon as we exit. We additionally close
--- the connection immediately in case the child thread catches the
--- async exception or performs some long-running cleanup action.
-bracket (T.registerKillThread (timeoutManager0 ii0) (closeConn ref conn)) 
T.cancel $ \th ->
-
-let ii1 = toInternalInfo1 ii0 th
--- We now have fully registered a connection close handler
--- in the case of all exceptions, so it is safe to one
--- again allow async exceptions.
-in unmask .
-   -- Call the user-supplied on exception code if any
-   -- exceptions are thrown.
-   handle (settingsOnException set Nothing) .
-
-   -- Call the user-supplied code for connection open and close events
-   bracket (onOpen addr) (onClose addr) $ \goingon ->
-
-   -- Actually serve this connection.
-   -- bracket with closeConn above ensures the connection is closed.
-   when goingon $ serveConnection conn ii1 addr transport set app
+-- Run the connection maker to get a new connection, and ensure
+-- that the connection is closed. If the mkConn call throws an
+-- exception, we will leak the connection. If the mkConn call is
+-- vulnerable to attacks (e.g., Slowloris), we do nothing to
+-- protect the server. 

commit ghc-warp for openSUSE:Factory

2017-02-21 Thread root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2017-02-21 13:46:01

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2016-12-09 
09:38:00.206358895 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2017-02-21 
13:46:02.336774970 +0100
@@ -1,0 +2,10 @@
+Sun Feb  5 19:32:29 UTC 2017 - psim...@suse.com
+
+- Update to version 3.2.11 with cabal2obs.
+
+---
+Mon Jan 30 09:34:53 UTC 2017 - psim...@suse.com
+
+- Update to version 3.2.10 with cabal2obs.
+
+---

Old:

  warp-3.2.9.tar.gz

New:

  warp-3.2.11.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.plI5vy/_old  2017-02-21 13:46:03.160658740 +0100
+++ /var/tmp/diff_new_pack.plI5vy/_new  2017-02-21 13:46:03.160658740 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-warp
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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 warp
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:3.2.9
+Version:3.2.11
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT

++ warp-3.2.9.tar.gz -> warp-3.2.11.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.9/ChangeLog.md new/warp-3.2.11/ChangeLog.md
--- old/warp-3.2.9/ChangeLog.md 2016-11-08 04:53:07.0 +0100
+++ new/warp-3.2.11/ChangeLog.md2017-02-02 02:57:32.0 +0100
@@ -1,6 +1,14 @@
+## 3.2.11
+
+* Fixing 10 HTTP2 bugs pointed out by h2spec v2.
+
+## 3.2.10
+
+* Add `connFree` to `Connection`. Close socket connections on timeout 
triggered. Timeout exceptions extend from `SomeAsyncException`. 
[#602](https://github.com/yesodweb/wai/pull/602) 
[#605](https://github.com/yesodweb/wai/pull/605)
+
 ## 3.2.9
 
-* Fixing a space leak. [#586] https://github.com/yesodweb/wai/pull/586
+* Fixing a space leak. [#586](https://github.com/yesodweb/wai/pull/586)
 
 ## 3.2.8
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.9/Network/Wai/Handler/Warp/HTTP2/HPACK.hs 
new/warp-3.2.11/Network/Wai/Handler/Warp/HTTP2/HPACK.hs
--- old/warp-3.2.9/Network/Wai/Handler/Warp/HTTP2/HPACK.hs  2016-11-08 
04:53:07.0 +0100
+++ new/warp-3.2.11/Network/Wai/Handler/Warp/HTTP2/HPACK.hs 2017-02-02 
02:57:32.0 +0100
@@ -83,13 +83,16 @@
 {-# INLINE checkRequestHeader #-}
 checkRequestHeader :: ValueTable -> Bool
 checkRequestHeader reqvt
+  | just mMethod (== "CONNECT") = mPath == Nothing && mScheme == Nothing
   | mStatus /= Nothing  = False
   | mMethod == Nothing  = False
+  | mScheme == Nothing  = False
+  | mPath   == Nothing  = False
+  | mPath   == Just ""  = False
   | mAuthority  == Nothing  = False
   | mConnection /= Nothing  = False
   | just mTE (/= "trailers")= False
-  | just mMethod (== "CONNECT") = mPath == Nothing && mScheme == Nothing
-  | otherwise   = mPath /= Nothing
+  | otherwise   = True
   where
 mStatus = getHeaderValue tokenStatus reqvt
 mScheme = getHeaderValue tokenScheme reqvt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/warp-3.2.9/Network/Wai/Handler/Warp/HTTP2/Receiver.hs 
new/warp-3.2.11/Network/Wai/Handler/Warp/HTTP2/Receiver.hs
--- old/warp-3.2.9/Network/Wai/Handler/Warp/HTTP2/Receiver.hs   2016-11-08 
04:53:07.0 +0100
+++ new/warp-3.2.11/Network/Wai/Handler/Warp/HTTP2/Receiver.hs  2017-02-02 
02:57:32.0 +0100
@@ -159,6 +159,8 @@
  when (ftyp == FrameHeaders) $ do
  st <- readIORef $ streamState strm0
  when (isHalfClosed st) $ E.throwIO $ ConnectionError 
StreamClosed "header must not be sent to half closed"
+ -- Priority made an idele stream
+ when (isIdle st) $ opened ctx strm0
  return js
  Nothing
| isResponse streamId -> return Nothing
@@ -166,19 +168,23 @@
  when (ftyp `notElem` [FrameHeaders,FramePriority]) $

commit ghc-warp for openSUSE:Factory

2016-08-26 Thread h_root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2016-08-26 23:17:24

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2016-07-20 
09:22:27.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2016-08-26 
23:17:26.0 +0200
@@ -1,0 +2,5 @@
+Wed Aug 17 18:43:05 UTC 2016 - psim...@suse.com
+
+- Update to version 3.2.8 revision 0 with cabal2obs.
+
+---

Old:

  warp-3.2.7.tar.gz

New:

  warp-3.2.8.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.X09aVU/_old  2016-08-26 23:17:27.0 +0200
+++ /var/tmp/diff_new_pack.X09aVU/_new  2016-08-26 23:17:27.0 +0200
@@ -19,15 +19,14 @@
 %global pkg_name warp
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:3.2.7
+Version:3.2.8
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT
-Group:  System/Libraries
+Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-array-devel
 BuildRequires:  ghc-async-devel
 BuildRequires:  ghc-auto-update-devel
@@ -66,7 +65,6 @@
 BuildRequires:  ghc-time-devel
 BuildRequires:  ghc-transformers-devel
 %endif
-# End cabal-rpm deps
 
 %description
 HTTP/1.0, HTTP/1.1 and HTTP/2 are supported. For HTTP/2, Warp supports direct
@@ -87,20 +85,14 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
-%if %{with tests}
-%{cabal} test
-%endif
-
+%cabal_test
 
 %post devel
 %ghc_pkg_recache

++ warp-3.2.7.tar.gz -> warp-3.2.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.7/ChangeLog.md new/warp-3.2.8/ChangeLog.md
--- old/warp-3.2.7/ChangeLog.md 2016-07-04 09:23:09.0 +0200
+++ new/warp-3.2.8/ChangeLog.md 2016-08-04 07:01:44.0 +0200
@@ -1,3 +1,9 @@
+## 3.2.8
+
+* Fixing HTTP2 requestBodyLength. 
[#573](https://github.com/yesodweb/wai/pull/573)
+* Making HTTP/2 :path optional for the CONNECT method. 
[#572](https://github.com/yesodweb/wai/pull/572)
+* Adding new APIs for HTTP/2 trailers: http2dataTrailers and modifyHTTP2Data 
[#566](https://github.com/yesodweb/wai/pull/566)
+
 ## 3.2.7
 
 * Adding new APIs for HTTP/2 server push: getHTTP2Data and setHTTP2Data 
[#510](https://github.com/yesodweb/wai/pull/510)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.7/Network/Wai/Handler/Warp/HTTP2/HPACK.hs 
new/warp-3.2.8/Network/Wai/Handler/Warp/HTTP2/HPACK.hs
--- old/warp-3.2.7/Network/Wai/Handler/Warp/HTTP2/HPACK.hs  2016-07-04 
09:23:09.0 +0200
+++ new/warp-3.2.8/Network/Wai/Handler/Warp/HTTP2/HPACK.hs  2016-08-04 
07:01:44.0 +0200
@@ -83,13 +83,21 @@
 {-# INLINE checkRequestHeader #-}
 checkRequestHeader :: ValueTable -> Bool
 checkRequestHeader reqvt
-  | getHeaderValue tokenStatus reqvt /= Nothing = False
-  | getHeaderValue tokenPath   reqvt == Nothing = False
-  | getHeaderValue tokenMethod reqvt == Nothing = False
-  | getHeaderValue tokenAuthority  reqvt == Nothing = False
-  | getHeaderValue tokenConnection reqvt /= Nothing = False
-  | just (getHeaderValue tokenTE reqvt) (/= "trailers") = False
-  | otherwise   = True
+  | mStatus /= Nothing  = False
+  | mMethod == Nothing  = False
+  | mAuthority  == Nothing  = False
+  | mConnection /= Nothing  = False
+  | just mTE (/= "trailers")= False
+  | just mMethod (== "CONNECT") = mPath == Nothing && mScheme == Nothing
+  | otherwise   = mPath /= Nothing
+  where
+mStatus = getHeaderValue tokenStatus reqvt
+mScheme = getHeaderValue tokenScheme reqvt
+mPath   = getHeaderValue tokenPath reqvt
+mMethod = getHeaderValue tokenMethod reqvt
+mAuthority  = getHeaderValue tokenAuthority reqvt
+mConnection = getHeaderValue tokenConnection reqvt
+mTE = getHeaderValue tokenTE reqvt
 
 {-# INLINE just #-}
 just :: Maybe a -> (a -> Bool) -> Bool
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/warp-3.2.7/Network/Wai/Handler/Warp/HTTP2/Receiver.hs 

commit ghc-warp for openSUSE:Factory

2016-07-20 Thread h_root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2016-07-20 09:22:26

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2016-07-12 
23:53:01.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2016-07-20 
09:22:27.0 +0200
@@ -1,0 +2,6 @@
+Mon Jul 18 07:51:44 UTC 2016 - psim...@suse.com
+
+- Update to version 3.2.7 revision 0 with cabal2obs.
+  This update obsoletes cabal-deps.patch.
+
+---

Old:

  cabal-deps.patch



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.gTJXoM/_old  2016-07-20 09:22:28.0 +0200
+++ /var/tmp/diff_new_pack.gTJXoM/_new  2016-07-20 09:22:28.0 +0200
@@ -17,30 +17,22 @@
 
 
 %global pkg_name warp
-
 %bcond_with tests
-
-Name:   ghc-warp
+Name:   ghc-%{pkg_name}
 Version:3.2.7
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT
 Group:  System/Libraries
-
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-# PATCH-FIX-OPENSUSE cabal-deps.patch mimi...@gmail.com
-Patch0: cabal-deps.patch
-
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros
 # Begin cabal-rpm deps:
 BuildRequires:  ghc-array-devel
 BuildRequires:  ghc-async-devel
 BuildRequires:  ghc-auto-update-devel
 BuildRequires:  ghc-blaze-builder-devel
+BuildRequires:  ghc-bytestring-builder-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-case-insensitive-devel
 BuildRequires:  ghc-containers-devel
@@ -50,6 +42,7 @@
 BuildRequires:  ghc-http2-devel
 BuildRequires:  ghc-iproute-devel
 BuildRequires:  ghc-network-devel
+BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-simple-sendfile-devel
 BuildRequires:  ghc-stm-devel
 BuildRequires:  ghc-streaming-commons-devel
@@ -59,6 +52,7 @@
 BuildRequires:  ghc-vault-devel
 BuildRequires:  ghc-wai-devel
 BuildRequires:  ghc-word8-devel
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-HTTP-devel
 BuildRequires:  ghc-HUnit-devel
@@ -79,34 +73,35 @@
 and ALPN (in TLS) but not upgrade. API docs and the README are available at
 .
 
-
 %package devel
 Summary:Haskell %{pkg_name} library development files
 Group:  Development/Libraries/Other
+Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
-Requires:   %{name} = %{version}-%{release}
 
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
-
 %prep
 %setup -q -n %{pkg_name}-%{version}
-%patch0 -p1
+
 
 %build
 %ghc_lib_build
 
+
 %install
 %ghc_lib_install
 
+
 %check
 %if %{with tests}
-%cabal test
+%{cabal} test
 %endif
 
+
 %post devel
 %ghc_pkg_recache
 
@@ -119,6 +114,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc README.md
+%doc ChangeLog.md README.md
 
 %changelog




commit ghc-warp for openSUSE:Factory

2016-07-12 Thread h_root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2016-07-12 23:52:58

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2016-05-31 
12:24:41.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2016-07-12 
23:53:01.0 +0200
@@ -1,0 +2,9 @@
+Sun Jul 10 16:12:00 UTC 2016 - mimi...@gmail.com
+
+- update to 3.2.7
+* Adding new APIs for HTTP/2 server push: getHTTP2Data and setHTTP2Data
+* Better accept(2) error handling
+* Adding getGracefulShutdownTimeout.
+* Add {test,}withApplicationSettings
+
+---

Old:

  warp-3.2.6.tar.gz

New:

  warp-3.2.7.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.UlrmCW/_old  2016-07-12 23:53:03.0 +0200
+++ /var/tmp/diff_new_pack.UlrmCW/_new  2016-07-12 23:53:03.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-warp
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-warp
-Version:3.2.6
+Version:3.2.7
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT

++ warp-3.2.6.tar.gz -> warp-3.2.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.6/ChangeLog.md new/warp-3.2.7/ChangeLog.md
--- old/warp-3.2.6/ChangeLog.md 2016-04-07 07:01:48.0 +0200
+++ new/warp-3.2.7/ChangeLog.md 2016-07-04 09:23:09.0 +0200
@@ -1,3 +1,10 @@
+## 3.2.7
+
+* Adding new APIs for HTTP/2 server push: getHTTP2Data and setHTTP2Data 
[#510](https://github.com/yesodweb/wai/pull/510)
+* Better accept(2) error handling 
[#553](https://github.com/yesodweb/wai/pull/553)
+* Adding getGracefulShutdownTimeout.
+* Add {test,}withApplicationSettings 
[#531](https://github.com/yesodweb/wai/pull/531)
+
 ## 3.2.6
 
 * Using token based APIs of http2 1.6.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.2.6/Network/Wai/Handler/Warp/HTTP2/HPACK.hs 
new/warp-3.2.7/Network/Wai/Handler/Warp/HTTP2/HPACK.hs
--- old/warp-3.2.6/Network/Wai/Handler/Warp/HTTP2/HPACK.hs  2016-04-07 
07:01:48.0 +0200
+++ new/warp-3.2.7/Network/Wai/Handler/Warp/HTTP2/HPACK.hs  2016-07-04 
09:23:09.0 +0200
@@ -6,6 +6,7 @@
   , hpackEncodeHeaderLoop
   , hpackDecodeHeader
   , just
+  , addNecessaryHeaders
   ) where
 
 import qualified Control.Exception as E
@@ -13,7 +14,6 @@
 import Data.ByteString (ByteString)
 import Network.HPACK hiding (Buffer)
 import Network.HPACK.Token
-import qualified Network.HTTP.Types as H
 import Network.HTTP2
 import Network.Wai.Handler.Warp.HTTP2.Types
 import Network.Wai.Handler.Warp.PackInt
@@ -23,31 +23,45 @@
 -- $setup
 -- >>> :set -XOverloadedStrings
 
+
+
+{-# INLINE addHeader #-}
+addHeader :: Token -> ByteString -> ValueTable -> TokenHeaderList -> 
TokenHeaderList
+addHeader t v tbl ths = case getHeaderValue t tbl of
+Nothing -> (t,v) : ths
+Just _  -> ths
+
+addNecessaryHeaders :: Context
+-> Rspn
+-> InternalInfo
+-> S.Settings
+-> IO TokenHeaderList
+addNecessaryHeaders Context{..} rspn ii settings = do
+date <- getDate ii
+let !s = rspnStatus rspn
+!status = packStatus s
+!defServer = S.settingsServerName settings
+(!ths0,tbl) = rspnHeaders rspn
+!ths1 = addHeader tokenServer defServer tbl ths0
+!ths2 = addHeader tokenDate date tbl ths1
+!ths3 = (tokenStatus, status) : ths2
+return ths3
+
+
+
 strategy :: EncodeStrategy
 strategy = EncodeStrategy { compressionAlgo = Linear, useHuffman = False }
 
 -- Set-Cookie: contains only one cookie value.
 -- So, we don't need to split it.
 hpackEncodeHeader :: Context -> Buffer -> BufSize
-  -> InternalInfo -> S.Settings
-  -> H.Status -> (TokenHeaderList,ValueTable)
+  -> TokenHeaderList
   -> IO (TokenHeaderList, Int)
-hpackEncodeHeader Context{..} buf siz ii settings s (ths0,tbl) = do
-let !defServer = 

commit ghc-warp for openSUSE:Factory

2016-05-31 Thread h_root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2016-05-31 12:24:40

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2016-01-28 
17:25:03.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2016-05-31 
12:24:41.0 +0200
@@ -1,0 +2,17 @@
+Sat Apr  9 18:45:52 UTC 2016 - mimi...@gmail.com
+
+- update to 3.2.6
+* Using token based APIs of http2 1.6.
+* Ignoring errors from setSocketOption
+* Added withApplication, testWithApplication, and openFreePort
+* Fixing reaper delay value of file info cache.
+
+---
+Wed Feb 24 10:21:16 UTC 2016 - mimi...@gmail.com
+
+- update to 3.2.3
+* Using http2 v1.5.x which much improves the performance of HTTP/2
+* To get rid of the bottleneck of ByteString's (==), a new logic to compare 
header
+names is introduced.
+
+---

Old:

  warp-3.2.2.tar.gz

New:

  warp-3.2.6.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.7EOOYS/_old  2016-05-31 12:24:42.0 +0200
+++ /var/tmp/diff_new_pack.7EOOYS/_new  2016-05-31 12:24:42.0 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-warp
-Version:3.2.2
+Version:3.2.6
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT
@@ -38,6 +38,7 @@
 BuildRequires:  ghc-rpm-macros
 # Begin cabal-rpm deps:
 BuildRequires:  ghc-array-devel
+BuildRequires:  ghc-async-devel
 BuildRequires:  ghc-auto-update-devel
 BuildRequires:  ghc-blaze-builder-devel
 BuildRequires:  ghc-bytestring-devel
@@ -62,13 +63,12 @@
 BuildRequires:  ghc-HTTP-devel
 BuildRequires:  ghc-HUnit-devel
 BuildRequires:  ghc-QuickCheck-devel
-BuildRequires:  ghc-async-devel
 BuildRequires:  ghc-directory-devel
 BuildRequires:  ghc-doctest-devel
 BuildRequires:  ghc-hspec-devel
 BuildRequires:  ghc-lifted-base-devel
-BuildRequires:  ghc-old-locale-devel
 BuildRequires:  ghc-process-devel
+BuildRequires:  ghc-silently-devel
 BuildRequires:  ghc-time-devel
 BuildRequires:  ghc-transformers-devel
 %endif

++ warp-3.2.2.tar.gz -> warp-3.2.6.tar.gz ++
 3191 lines of diff (skipped)




commit ghc-warp for openSUSE:Factory

2016-01-29 Thread h_root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2016-01-28 17:24:11

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2016-01-07 
00:25:06.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2016-01-28 
17:25:03.0 +0100
@@ -1,0 +2,16 @@
+Wed Jan 20 13:45:15 UTC 2016 - mimi...@gmail.com
+
+- update to 3.2.2
+* Throwing errno for pread
+* Add back warpVersion
+* Major version up due to breaking changes. This is because the HTTP/2 code 
was 
+started over with Warp 3.1.3 due to performance issue
+* runHTTP2, runHTTP2Env, runHTTP2Settings and runHTTP2SettingsSocket were 
removed 
+from the Network.Wai.Handler.Warp module.
+* The performance of HTTP/2 was drastically improved. Now the performance of 
HTTP/2
+is almost the same as that of HTTP/1.1.
+* The logic to handle files in HTTP/2 is now identical to that in HTTP/1.1.
+* Internal stuff was removed from the Network.Wai.Handler.Warp module 
+according to the plan.
+
+---

Old:

  warp-3.1.12.tar.gz

New:

  warp-3.2.2.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.YUriPL/_old  2016-01-28 17:25:04.0 +0100
+++ /var/tmp/diff_new_pack.YUriPL/_new  2016-01-28 17:25:04.0 +0100
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-warp
-Version:3.1.12
+Version:3.2.2
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT

++ warp-3.1.12.tar.gz -> warp-3.2.2.tar.gz ++
 3295 lines of diff (skipped)




commit ghc-warp for openSUSE:Factory

2016-01-06 Thread h_root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2016-01-07 00:24:54

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2015-10-06 
13:27:32.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2016-01-07 
00:25:06.0 +0100
@@ -1,0 +2,28 @@
+Fri Dec 25 09:35:53 UTC 2015 - mimi...@gmail.com
+
+- update to 3.1.12
+- refresh cabal-deps.patch
+* Setting lower bound for auto-update
+* Providing a new API: killManager.
+* Preventing space leaks due to Weak ThreadId
+* Setting upper bound for http2.
+
+---
+Tue Dec 15 20:42:32 UTC 2015 - mimi...@gmail.com
+
+- update to 3.1.10
+* setFileInfoCacheDuration
+* setLogger
+* FileInfo/getFileInfo
+* Fix: warp-tls strips out the Host request header
+* Using the new priority queue based on PSQ provided by http2 lib.
+* A concatenated Cookie header is prepended to the headers to ensure that it 
+flows pseudo headers.
+* Providing a new settings: setHTTP2Disabled
+* Using http-types v0.9.
+* Using newer http2 library to prevent change table size attacks.
+* API for HTTP/2 server push and trailers.
+* Preventing response splitting attacks.
+* Concatenating multiple Cookie: headers in HTTP/2.
+
+---

Old:

  warp-3.1.3.1.tar.gz

New:

  warp-3.1.12.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.JZQvXv/_old  2016-01-07 00:25:08.0 +0100
+++ /var/tmp/diff_new_pack.JZQvXv/_new  2016-01-07 00:25:08.0 +0100
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-warp
-Version:3.1.3.1
+Version:3.1.12
 Release:0
 Summary:A fast, light-weight web server for WAI applications
 License:MIT

++ cabal-deps.patch ++
--- /var/tmp/diff_new_pack.JZQvXv/_old  2016-01-07 00:25:08.0 +0100
+++ /var/tmp/diff_new_pack.JZQvXv/_new  2016-01-07 00:25:08.0 +0100
@@ -1,16 +1,16 @@
-Index: warp-3.1.3/warp.cabal
+Index: warp-3.1.12/warp.cabal
 ===
 warp-3.1.3.orig/warp.cabal
-+++ warp-3.1.3/warp.cabal
-@@ -36,7 +36,6 @@ Library
-, auto-update   >= 0.1.1&& < 0.2
+--- warp-3.1.12.orig/warp.cabal
 warp-3.1.12/warp.cabal
+@@ -37,7 +37,6 @@ Library
+, auto-update   >= 0.1.3&& < 0.2
 , blaze-builder >= 0.4
 , bytestring>= 0.9.1.4
 -   , bytestring-builder
 , case-insensitive  >= 0.2
 , containers
 , ghc-prim
-@@ -134,7 +133,6 @@ Test-Suite spec
+@@ -139,7 +138,6 @@ Test-Suite spec
 , auto-update
 , blaze-builder >= 0.4
 , bytestring>= 0.9.1.4

++ warp-3.1.3.1.tar.gz -> warp-3.1.12.tar.gz ++
 3937 lines of diff (skipped)




commit ghc-warp for openSUSE:Factory

2015-10-06 Thread h_root
Hello community,

here is the log from the commit of package ghc-warp for openSUSE:Factory 
checked in at 2015-10-06 13:27:05

Comparing /work/SRC/openSUSE:Factory/ghc-warp (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-warp.new (New)


Package is "ghc-warp"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-warp/ghc-warp.changes2015-09-17 
09:19:07.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-warp.new/ghc-warp.changes   2015-10-06 
13:27:32.0 +0200
@@ -1,0 +2,5 @@
+Sun Oct  4 17:18:16 UTC 2015 - mimi...@gmail.com
+
+- update to 3.1.3.1
+
+---

Old:

  warp-3.1.3.tar.gz

New:

  warp-3.1.3.1.tar.gz



Other differences:
--
++ ghc-warp.spec ++
--- /var/tmp/diff_new_pack.lSsWba/_old  2015-10-06 13:27:33.0 +0200
+++ /var/tmp/diff_new_pack.lSsWba/_new  2015-10-06 13:27:33.0 +0200
@@ -15,17 +15,18 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %global pkg_name warp
 
 %bcond_with tests
 
 Name:   ghc-warp
-Version:3.1.3
+Version:3.1.3.1
 Release:0
 Summary:A fast, light-weight web server for WAI applications
+License:MIT
 Group:  System/Libraries
 
-License:MIT
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE cabal-deps.patch mimi...@gmail.com
@@ -98,33 +99,26 @@
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
 %if %{with tests}
 %cabal test
 %endif
 
-
 %post devel
 %ghc_pkg_recache
 
-
 %postun devel
 %ghc_pkg_recache
 
-
 %files -f %{name}.files
 %defattr(-,root,root,-)
 %doc LICENSE
 
-
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
 %doc README.md
 
-
 %changelog

++ warp-3.1.3.tar.gz -> warp-3.1.3.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.1.3/Network/Wai/Handler/Warp/Response.hs 
new/warp-3.1.3.1/Network/Wai/Handler/Warp/Response.hs
--- old/warp-3.1.3/Network/Wai/Handler/Warp/Response.hs 2015-08-18 
04:00:41.0 +0200
+++ new/warp-3.1.3.1/Network/Wai/Handler/Warp/Response.hs   2015-10-04 
13:14:05.0 +0200
@@ -55,7 +55,7 @@
 import Network.Wai.Handler.Warp.ResponseHeader
 import qualified Network.Wai.Handler.Warp.Timeout as T
 import Network.Wai.Handler.Warp.Types
-import Network.Wai.Internal
+import Network.Wai.Internal (Response (ResponseBuilder, ResponseStream, 
ResponseFile, ResponseRaw))
 import Numeric (showInt)
 import qualified Paths_warp
 import qualified System.PosixCompat.Files as P
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/warp-3.1.3/warp.cabal new/warp-3.1.3.1/warp.cabal
--- old/warp-3.1.3/warp.cabal   2015-08-18 04:00:41.0 +0200
+++ new/warp-3.1.3.1/warp.cabal 2015-10-04 13:14:05.0 +0200
@@ -1,5 +1,5 @@
 Name:warp
-Version: 3.1.3
+Version: 3.1.3.1
 Synopsis:A fast, light-weight web server for WAI applications.
 License: MIT
 License-file:LICENSE