avoid padding in servePut
This means that when the client sends a truncated data to indicate invalidity, DATA is not passed the full expected data. That leaves the P2P connection in a state where it cannot be reused. While so far, they are not reused, they will be later when proxies are supported. So, have to close the P2P connection in this situation.
This commit is contained in:
parent
efa0efdc44
commit
a01426b713
4 changed files with 42 additions and 31 deletions
|
@ -186,7 +186,7 @@ testPut = do
|
|||
(AssociatedFile (Just "foo"))
|
||||
"foocontent"
|
||||
30
|
||||
(liftIO (print "validity check") >> return True)
|
||||
(liftIO (print "validity check") >> return False)
|
||||
liftIO $ print res
|
||||
|
||||
testRemove = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue