374 Commits

Author SHA1 Message Date
23397e3d4a added new REST API for config file 2023-07-27 18:41:57 +01:00
50085c6b11 added force update of blockchain when a block is updated as temporary fix 2023-07-20 22:09:59 +01:00
9dcfcb6b55 added support to filter files in the search result based on the NodeID provided 2023-07-01 13:02:49 +01:00
187621a29e current changes with fixing to detecting offline peers 2023-06-30 01:09:42 +01:00
Akilan Selvacoumar
ae5f1d2fd7 New features (#110)
* added upload status

* added changes for progress bar with more logs and bug fixes, Documentation yet to be added

* huge changes that need more doucmenting

* added possibility to get profile using NodeID

* added fix profile listing user profile information

* removed profile image from the explore reult struct

* saving current changes

* added filter to search based on NodeID

* Monday bug fixing

* updates to the profile

* changes for tracing the blockchain profile image not shown

* added condition to ensure TAG is not sent and removed debug prints

* updated webapi docs
2023-06-28 00:38:17 +01:00
Akilan Selvacoumar
97c3001596 Merge pull request #108 from PeernetOfficial/api-merge-directory
Api merge directory
2023-04-04 18:46:41 +01:00
a739485931 merge directory docs added 2023-04-04 18:36:09 +01:00
0a8e838cd2 added comments 2023-03-27 15:49:42 +01:00
8f223cb349 base merge directory complete 2023-03-27 14:38:13 +01:00
712f7cee56 added base changes for the merge cirectory api 2023-03-15 00:30:44 +00:00
Akilan Selvacoumar
b34b2e2b7c Change directory route and document change (#107)
* changed route to view files added by a certain node

* gofmt my changes

* added fix for blockchain/explore to also accept localnodes as a parameter.

* added local blockchain search
2023-03-10 09:47:18 +00:00
Akilan Selvacoumar
2b2f20ca18 changed route to view files added by a certain node (#105)
* changed route to view files added by a certain node

* gofmt my changes
2023-02-27 17:24:27 +00:00
dependabot[bot]
9f6724446c Bump golang.org/x/net from 0.0.0-20221014081412-f15817d10f9b to 0.7.0 (#106)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20221014081412-f15817d10f9b to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 17:22:09 +00:00
Akilan Selvacoumar
1766aa85cb made backend varaible public (#104) 2023-02-12 10:06:17 +00:00
Akilan Selvacoumar
9775525d35 gofmt peernet (#103) 2023-02-12 09:59:31 +00:00
Akilan Selvacoumar
3a1eece580 Directory (#102)
* changes to explore to take parameter id in /explore

* route /expore/node added
2023-02-12 09:47:56 +00:00
Akilan Selvacoumar
3537d04c4d Exposed certain variables in the struct public for the Test framework. (#101)
* Exposed peer seed as a public struct

* Made certain variables public in the struct WebAPIInstance
2023-02-11 21:57:41 +00:00
Kleissner
6989ef4a19 -> version Alpha 9 2022-11-01 17:58:01 +01:00
Kleissner
ff6002c0a0 webapi: /status/peers add fields to response 2022-10-16 12:42:44 +02:00
Kleissner
249ccf0bcf webapi: New function /status/peers to return a list of all peers, including GeoIP info 2022-10-15 19:10:50 +02:00
Kleissner
34be2cc964 webapi: /explore optional &offset= parameter which does not make sense to be used 2022-10-14 16:28:43 +02:00
Kleissner
0e3e8dc988 Webapi: Implement pagination for /search/result by adding optional &offset= parameter 2022-06-01 17:09:42 +02:00
Kleissner
e7d14d3474 Update go.mod 2022-06-01 16:22:00 +02:00
Kleissner
346f38c611 Add TS file extension to detected list. VLC creates TS files. 2022-03-29 02:28:33 +02:00
Kleissner
1a4fde0c93 New system submodule to support package files. 2022-03-26 00:21:25 +01:00
Kleissner
a05944c318 Allow overwriting the default config (must be done before calling the Init function). 2022-03-24 15:52:36 +01:00
Kleissner
cb1441c97a VirtualPacketConn: New Stats field maintained by caller. This allows insight into active transfers.
New FileTransferStats and BlockTransferStats structures.
2022-03-16 23:52:55 +01:00
Kleissner
51336263f5 UDT Metrics: Add DataSent, DataReceived. Auto calculate data transfer speeds. 2022-03-16 23:35:49 +01:00
Kleissner
e2cda5b565 UDT: Record transfer metrics. 2022-03-14 06:13:52 +01:00
Kleissner
c9158cb15f UDT: Fix critical bugs: Virtual Connection should not block.
Revert close channel from last commit.
2022-02-27 04:11:59 +01:00
Kleissner
71cd90274c UDT: Fix race condition close of channel. 2022-02-26 17:42:46 +01:00
Kleissner
8704b7f657 UDT: Fix close bug. It kept sending ACKs/NAKs even though the underlying socket was already closed. Close #95 2022-02-26 16:29:03 +01:00
Kleissner
5f161c0c38 UDT: Fix ACK/NAK ddos by implementing a simple rate limiter. It uses a min/max time and doubles the wait time in between. 2022-02-26 15:41:35 +01:00
Kleissner
0553c01962 -> Alpha 7 2022-02-24 14:42:40 +01:00
Kleissner
298dbf80d7 Fix bug in PeerConnectNode 2022-02-23 03:16:29 +01:00
Kleissner
ee22bf641a Warehouse.FileExists return fileSize instead of fileInfo 2022-02-21 22:35:20 +01:00
Peter Kleissner
8d62724d0c Merge pull request #92 from PeernetOfficial/udt-nak-fix
added fix to nak interval
2022-02-21 00:31:59 +01:00
Peter Kleissner
332fbbf829 Update congestion_native.go 2022-02-21 00:31:15 +01:00
Peter Kleissner
66e351ca64 Update udtsocket_send.go 2022-02-21 00:30:30 +01:00
Peter Kleissner
e45dddd6f5 Update congestion_native.go
Remove non-used lines
2022-02-21 00:29:49 +01:00
f9f7d48e72 added fix to nak interval 2022-02-21 02:38:58 +04:00
Kleissner
94ed383489 UDT: Fix critical bug in NativeCongestionControl not using pointer. ackEvent immediate parameter. 2022-02-20 18:24:42 +01:00
Kleissner
a41de8a4db UDT: Fix critical bugs: congestion window size was not set on senders side; sentAck was not set in case ACK threshold wasn't reached, which caused resendACKTimer to fail to send 2022-02-19 23:37:04 +01:00
Kleissner
7d9e38a6f5 UDT: Revert removal of udtSocketRecv.ackInterval from b728b939ec close #55 2022-02-19 21:27:21 +01:00
Kleissner
f23315fbde Minor fix in readme 2022-02-19 21:20:31 +01:00
Kleissner
b76601e11c Support custom client config in Init. Now saved on backend.SaveConfig. 2022-02-05 21:05:23 +01:00
Kleissner
c2bfb85eb8 Document support for target systems. Close #86, close #88 2022-02-02 02:21:54 +01:00
Kleissner
700fc30586 UDT: Minor ticker change in recv. Make sure it is always closed. 2022-01-17 17:00:05 +01:00
Kleissner
86cf8e1fe8 Improve performance of Warehouse.ReadFile by detecting file not found error via os.Open, instead of wh.FileExists which is a very expensive function. 2022-01-17 15:39:39 +01:00
Kleissner
1af98ab141 UDT: Improve performance by relying on a single ticker instead of creating new ones for ACK/NAK each outgoing packet.
Creating new tickers was huge stress for the gc reducing performance (according to pprof 35% was spent on runtime.siftdownTimer).
2022-01-17 04:28:39 +01:00