Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added spaces to directory names. | Michael P. Soulier | 2022-11-26 | 1 | -1/+26 |
| | |||||
* | Fix race condition when waiting for ACK | Marcin Lewandowski | 2022-03-23 | 1 | -0/+51 |
| | | | | | | | | | | | | | | | | | | TFTPy is designed in a way that socket timeout is used to calculate timeout when waiting for packet. During that time another unexpected packet may arrive. After that the socket operation is restarted and timeout is calculated from start. This might be a problem because both sides have timeout and these timeout may be different or one host may be significantly faster that another. In such situation the timeout will be never triggered as another host will always retransmit his packet faster. For most cases it does not matter because TFTP is always responding to packet sent and transmission may continue. The only one exception is no response to duplicate ACK. It is necessary to prevent Sorcerer's Apprentice Syndrome. This patch introduces additional exception TftpTimeoutExpectACK raised when reaching timeout during waiting on ACK of current block but receiving duplicate ACK of previous block. | ||||
* | run pyupgrade | adehad | 2021-10-23 | 1 | -1/+1 |
| | |||||
* | first attempt with github actions, various linting | adehad | 2021-10-11 | 1 | -165/+160 |
| | |||||
* | Merged PR 117 | Michael P. Soulier | 2021-05-18 | 1 | -3/+11 |
| | |||||
* | TftpServerState.serverInitial: prevent access to prefix-sharing siblings of ↵ | Robert Scott | 2020-08-29 | 1 | -29/+106 |
| | | | | | | | | | | | | tftproot do this by ensuring the tftproot we compare against is terminated with a slash. Fixes #110 include tests proving the fix, along with some more fleshed out tests around permitted and disallowed request paths | ||||
* | Fixing another broken test case | Michael P. Soulier | 2018-09-13 | 1 | -1/+1 |
| | |||||
* | Fixing some broken test-cases. | Michael P. Soulier | 2018-09-13 | 1 | -2/+2 |
| | |||||
* | Fixing some encoding issues in python3 | Michael P. Soulier | 2018-09-13 | 1 | -9/+9 |
| | |||||
* | Adding some boilerplate | Michael P. Soulier | 2018-05-18 | 1 | -0/+2 |
| | |||||
* | Putting TftpClient and TftpServer back into the tftpy module context for ↵ | Michael P. Soulier | 2018-05-15 | 1 | -19/+25 |
| | | | | convenience. Also improving the test logger. | ||||
* | Rationalized module includes and logging. | Michael P. Soulier | 2018-05-15 | 1 | -84/+62 |
| | |||||
* | Removing logging.basicConfig from library. Fixes #86. | Michael P. Soulier | 2018-05-09 | 1 | -0/+1 |
| | |||||
* | Fix some deprecations and python3 incompatibilities | sedrubal | 2018-04-04 | 1 | -12/+12 |
| | |||||
* | make testStreamLogger and testFileLogger clearer | Reverend Homer | 2016-10-24 | 1 | -7/+2 |
| | |||||
* | Merge branch 'master' into dynamic | Paul Weaver | 2016-07-07 | 1 | -10/+10 |
|\ | | | | | | | | | | | | | To resolve conflict with latest changes on master Conflicts: tftpy/TftpServer.py | ||||
| * | Fixing obvious python3 errors. Timeouts still not working. | Michael P. Soulier | 2016-07-06 | 1 | -8/+8 |
| | | |||||
| * | Fixing some python3 syntax errors | Michael P. Soulier | 2016-07-05 | 1 | -2/+2 |
| | | |||||
* | | Add a context to dynamic upload_open | Paul Weaver | 2016-06-17 | 1 | -1/+1 |
| | | |||||
* | | Implement dynamic upload support | Paul Weaver | 2016-06-17 | 1 | -2/+26 |
|/ | |||||
* | tests: fix failure due to alarm | Carl van Schaik | 2016-04-12 | 1 | -10/+14 |
| | | | | | | | Test cases raises an alarm in the server to call the stop() function. This actually interrupts the select system call and raises an exception instead. We catch the interrupted syscall in select and allow it to restart. | ||||
* | tests: Rate limit test with timing dependency | Carl van Schaik | 2016-04-10 | 1 | -6/+14 |
| | | | | | | When running tests on a fast server, or with output redirected, some test cases would complete a transfer before the test delay to inject an error. | ||||
* | Merge branch 'tsize' | Michael P. Soulier | 2015-10-15 | 1 | -0/+6 |
|\ | |||||
| * | Added tests for tsize option and fixed failures. | Michael P. Soulier | 2015-10-15 | 1 | -0/+6 |
| | | |||||
* | | Adding joke of a unit test for logging. | Michael P. Soulier | 2015-10-14 | 1 | -0/+22 |
|/ | |||||
* | Test case for dynamic server listenport | Philip Derrin | 2014-06-13 | 1 | -1/+22 |
| | |||||
* | Added a test for last change. | Michael P. Soulier | 2013-11-11 | 1 | -0/+3 |
| | |||||
* | Added tests for server api stop. | Michael P. Soulier | 2013-09-27 | 1 | -0/+74 |
| | |||||
* | Fixed testcases. | Michael P. Soulier | 2013-09-26 | 1 | -13/+13 |
| | |||||
* | Fixing a testcase. | Michael P. Soulier | 2013-09-26 | 1 | -7/+7 |
| | |||||
* | Fixing unit tests | Michael P. Soulier | 2013-07-28 | 1 | -10/+10 |
| | |||||
* | Increasing test file size to 50MB and removed the assertion of a block zero,baserock/morph | Michael P. Soulier | 2013-05-15 | 1 | -7/+7 |
| | | | | as that will happen at block number rollover. Closes issue #36. | ||||
* | Adding testcases for new file-like input and output | Michael P. Soulier | 2012-09-30 | 1 | -4/+14 |
| | |||||
* | Fixing testcase for pre python 2.7 | Michael P. Soulier | 2012-09-29 | 1 | -1/+1 |
| | |||||
* | t/test.py: add unit test for insecure path access | Fabian Knittel | 2012-04-26 | 1 | -0/+38 |
| | | | | | The test currently fails, because the request path is improperly checked / sanitised. | ||||
* | Fixing issue #26, with the server not creating the full path to the filename | Michael P. Soulier | 2012-03-10 | 1 | -3/+6 |
| | | | | being uploaded. | ||||
* | Adding subdirectory support. Hopefully closes issue 25. | Michael P. Soulier | 2011-09-01 | 1 | -0/+38 |
| | |||||
* | Fixing issue #3, expanding unit tests. | Michael P. Soulier | 2011-07-24 | 1 | -0/+67 |
| | |||||
* | Adding a server download state test to the unit tests. | Michael P. Soulier | 2011-06-02 | 1 | -1/+44 |
| | |||||
* | Fixing typo in unit test | Michael P. Soulier | 2010-05-25 | 1 | -1/+1 |
| | |||||
* | Fixed unit test for factory | msoulier | 2007-06-05 | 1 | -1/+1 |
| | | | | git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@68 63283fd4-ec1e-0410-9879-cb7f675518da | ||||
* | Added testcase for TftpPacketFactory. | msoulier | 2006-10-25 | 1 | -0/+18 |
| | | | | git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@29 63283fd4-ec1e-0410-9879-cb7f675518da | ||||
* | Updated testcases, fixed one error in decode_options | msoulier | 2006-10-13 | 1 | -3/+57 |
| | | | | git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@26 63283fd4-ec1e-0410-9879-cb7f675518da | ||||
* | Updated testcases | msoulier | 2006-10-11 | 1 | -0/+28 |
| | | | | git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@25 63283fd4-ec1e-0410-9879-cb7f675518da | ||||
* | Adding makefile | msoulier | 2006-10-11 | 1 | -0/+39 |
git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@23 63283fd4-ec1e-0410-9879-cb7f675518da |