Commit Graph

14 Commits (d905bd8724413fc57e5489a6baa3ddc528c028cd)

Author SHA1 Message Date
Gergö Barany fc5da5d3ff Refactor type 2 message decoding, drop any extra lines from subject.
This allows other clients to insert headers in extra lines of text between
the Subject and Body fields of the message, as discussed on the 24x7 mailing
list. The PyBitmessage client was never able to meaningfully display
multi-line subjects, so this does not break anything. The extra lines are
thrown away and never stored anywhere, so this also protects against
watermarking attacks.
11 years ago
Jonathan Warren 21ce1f5a19 manual merge 11 years ago
Pedro Gimeno 55b899f5c1 Better fix for issue #183
The former patch was too local; this one integrates better with the structure of the code.
11 years ago
Jonathan Warren 2012096673 Merge branch 'master' of git://github.com/linkerlin/PyBitmessage into linkerlin-master 11 years ago
Pedro Gimeno 95a1afb84b Fix issue #183 (CPU 100% usage)
As per http://docs.python.org/2/howto/sockets.html#using-a-socket it's
possible that a socket recv() call returns 0 bytes if the remote closes
the connection. In that case, recv() does not obey settimeout(): it
just doesn't block and returns zero bytes immediately, which in this
case results in an infinite loop if the transmission was incomplete.
11 years ago
Linker Lin 4a84a30fc6 replace acquire lock by 'with' statement 11 years ago
Jonathan Warren 61ab0013aa added new variable: doTimingAttackMitigation 11 years ago
Jonathan Warren 3204c6b833 added new variable: doTimingAttackMitigation 11 years ago
Jonathan Warren acb8b51e00 sock.sendall errors need-not go to stderr 11 years ago
Jonathan Warren 5a7d86cca9 Fix edge-case bug in possibleNewPubkey function 11 years ago
Jonathan Warren c857f73d0b Continued moving code into individual modules 11 years ago
Jordan Hall 2eb6558cf1 Added a number of missing imports fixing several issues (thank you PyDev) 11 years ago
Jordan Hall fe8998ca3a Seperating out all peer networking classes and merging with upstream 11 years ago
Jordan Hall 27a8662f22 Seperating class_singleListener, class_receiveDataThread, class_sendDataThread 11 years ago