Commit Graph

24 Commits

Author SHA1 Message Date
Cassondra Foesch d9ce3caa72 convert uses of uint8 instead of fxp to fxp 2025-05-30 13:30:46 +00:00
Cassondra Foesch f3501dc6ba address code review 2024-01-19 01:23:22 +00:00
Cassondra Foesch d1903fbd46 rework client to prevent after-close usage, and support perm at open 2024-01-19 00:20:23 +00:00
Cassondra Foesch ba854bee45 collect all marshal/unmarshal functions into packet.go 2021-08-11 11:12:34 +00:00
Cassondra Foesch 39e1161d12 address my own code review comments 2021-03-17 12:05:00 +00:00
Cassondra Foesch f1e28f8a88 Improve benchmarks and errors 2021-03-17 11:03:51 +00:00
Cassondra Foesch 861a8eaf5c pointer receivers and statusFromError(uint32, error) 2021-02-22 12:11:42 +00:00
Nicola Murino 3f969fcd59 add optional AllocationModeOptimized
after processing a packet we keep in memory the allocated slices and we reuse
them for new packets.
Slices are allocated in:

- recvPacket
- when we receive a sshFxpReadPacket (downloads)

The allocated slices have a fixed size = maxMsgLength.

Allocated slices are referenced to the request order id and are marked for reuse
after a request is served in maybeSendPackets.

The allocator is added to the packetManager struct and it is cleaned at the end
of the Serve() function.

This allocation mode is optional and disabled by default
2020-03-14 19:42:19 +01:00
Nicola Murino b4ea0fd6f6 fix lint issues
These lint issues remain:

- request-errors.go, aliases for new error types
- request-attrs.go, UidGid. Changing this will break compatibility
2019-08-30 17:04:37 +02:00
Matt Layher 167a495725 packet, server: use a single read-only check 2016-01-11 11:50:10 -05:00
Matt Layher 9374ae613d *: golint: add and fix up comments on exported types 2016-01-07 15:16:34 -05:00
Matt Layher b348482b1a *: golint (part 1) 2016-01-07 12:10:24 -05:00
Mark Sheahan 5b6348f034 version, lstat 2015-07-25 01:19:29 -07:00
Alexander Neumann 29ed2c7341 Run gofmt 2014-10-09 21:01:38 +02:00
Dave Cheney ea8e50a388 Remove unused field in fxpOpenPacket
Update #14
2014-09-28 13:01:15 +10:00
Matthieu Rakotojaona c01839afa0 Manually marshal packets for more speed 2014-09-27 14:29:57 +02:00
Dave Cheney c98099bbd6 Fix test 2014-05-25 14:27:01 +10:00
Dave Cheney 2a93daf2d0 made all constants private 2013-11-06 19:10:28 +11:00
Dave Cheney 6ce8872642 Added recvPacket 2013-11-05 14:36:38 +11:00
Dave Cheney 9187a3b3b2 adedd string unmarshal 2013-11-05 12:31:20 +11:00
Dave Cheney 30b997f450 added unmarhshal for uint32/64 yptes 2013-11-05 12:23:48 +11:00
Dave Cheney 049a0ff391 implement rudamentary reflect based marshalling 2013-11-05 12:03:58 +11:00
Dave Cheney b17decee5f added generic marshal 2013-11-05 11:36:47 +11:00
Dave Cheney fbcab0566f Added initial message tests 2013-11-05 11:25:17 +11:00