summaryrefslogtreecommitdiff
path: root/tftpy
Commit message (Collapse)AuthorAgeFilesLines
* Removing error response if error received during RRQ or WRQ state. [106]Michael P. Soulier2022-04-181-2/+0
|
* Merged PR 133 - handling duplicate ACKMichael P. Soulier2022-04-184-1/+23
|\
| * Fix race condition when waiting for ACKMarcin Lewandowski2022-03-234-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Updated unreliable network test case.Michael P. Soulier2022-04-181-0/+1
| |
* | Adding a test hook for network unreliability.Michael P. Soulier2022-03-262-8/+22
|/
* Merge remote-tracking branch 'adehad/feature/remove_compat'Michael P. Soulier2021-12-032-20/+1
|\
| * remove py2/3 compatadehad2021-10-242-20/+1
| |
* | Merged PR 104Michael P. Soulier2021-12-031-2/+5
|\ \
| * | TftpServer: lower log level for clean shutdown msgsRafael Gago2019-09-171-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Before this commit all clean shutdown sequences (without active sessions) were issuing warnings on the logs. Closing the server without active sessions is normal behavior, so it should not generate error messages. This commit fixes this.
* | | run codespelladehad2021-10-231-4/+4
| | |
* | | run pyupgradeadehad2021-10-238-37/+25
| |/ |/|
* | re-lint after mergeadehad2021-10-215-13/+15
| |
* | Merge remote-tracking branch 'upstream/master'adehad2021-10-217-39/+43
|\ \
| * \ Merge remote-tracking branch 'BuhtigithuB/codebase-enhancements' into codebaseMichael P. Soulier2021-10-218-90/+107
| |\ \
| | * | Enhance PEP8Richard Vézina2021-10-151-7/+16
| | | |
| | * | is NoneRichard Vézina2021-10-151-1/+1
| | | |
| | * | 120 is good (80 -> 120 line length)Richard Vézina2021-10-151-19/+11
| | | |
| | * | Enhance PEP8Richard Vézina2021-10-151-2/+5
| | | |
| | * | Enhance PEP8Richard Vézina2021-10-151-0/+1
| | | |
| | * | is NoneRichard Vézina2021-10-151-1/+1
| | | |
| | * | Improve natural english language readabilityRichard Vézina2021-10-151-1/+1
| | | |
| | * | No inline ifRichard Vézina2021-10-151-1/+2
| | | |
| | * | Create list directlyRichard Vézina2021-10-151-2/+1
| | | |
| | * | 120 is good (80 -> 120 line length)Richard Vézina2021-10-151-25/+12
| | | |
| | * | Optimize importsRichard Vézina2021-10-151-6/+8
| | | |
| | * | Enhance PEP8Richard Vézina2021-10-151-1/+11
| | | |
| | * | Enhance PEP8Richard Vézina2021-10-151-0/+1
| | | |
| | * | Enhance PEP8Richard Vézina2021-10-151-19/+28
| | | |
| | * | Fix typosRichard Vézina2021-10-151-2/+2
| | | |
| | * | Enhance PEP8Richard Vézina2021-10-151-1/+2
| | | |
| | * | Optimize importRichard Vézina2021-10-151-1/+2
| | | |
| | * | Enhance PEP8Richard Vézina2021-10-151-1/+2
| | | |
| * | | Dropping Python 2 support. #127Michael P. Soulier2021-10-191-3/+3
| | | |
* | | | fix py2 syntax?adehad2021-10-151-7/+1
| | | |
* | | | first attempt with github actions, various lintingadehad2021-10-119-352/+469
|/ / /
* | | Fix def serverInitial to support Windows0.8.2pucgenie2021-06-061-1/+1
|/ / | | | | | | There are multiple places where hard-coded forward-slashes occur that can be replaces by `os.sep`. This fixes just one showstopper.
* | Merge pull request #115 from graingert/patch-1Michael P. Soulier2021-05-201-1/+1
|\ \ | | | | | | allow overriding select timeout in listen
| * | allow overriding select timeout in listenThomas Grainger2021-02-011-1/+1
| | |
* | | Merge remote-tracking branch 'ulidtko/fix/binary-stdin'Michael P. Soulier2021-05-192-1/+17
|\ \ \ | | | | | | | | | | | | Merging PR 116.
| * | | Fix #109: reading binary data from sys.stdinmax ulidtko2021-02-172-1/+17
| | | |
* | | | Merged PR 117Michael P. Soulier2021-05-181-1/+1
| | | |
* | | | Add retires paramater to client and server sessionsisraelv2021-03-112-6/+15
| | | |
* | | | Add retires to context initializersisraelv2021-03-113-6/+13
|/ / /
* | | Merge branch 'master' into ris-tftproot-sibling-fixMichael P. Soulier2021-02-011-1/+1
|\ \ \ | |/ /
| * | replace deprecated log.warn( with log.warning(Thomas Grainger2020-06-111-1/+1
| |/
* | TftpServerState.serverInitial: prevent access to prefix-sharing siblings of ↵Robert Scott2020-08-291-1/+1
|/ | | | | | | | | | | | 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 more encoding issues for python3.Michael P. Soulier2018-09-132-6/+11
|
* Fixing some encoding issues in python3Michael P. Soulier2018-09-131-22/+47
|
* Fixed testClientServerUploadOptions testcaseMichael P. Soulier2018-09-121-1/+1
|
* Compatibility tested¨Andreas2018-09-101-2/+4
| | | | | | Tested compatibility with easy test client and test server. So far, no errors anymore. (In Both python2 and python3) Just tested basic functionality!