1. Since, PHP can not work in separate threads. Will run two processes are managed through sockets. If you write code in a control heavy flow, it will not cause "freezes" in the flow phpdclib. The biggest problem is the buffer management. Need to control the buffers, so they are not full, quickly cleared, and in case of an error caused an exception that can be processed.
2. In the future the library will be rewritten using libevent. But now, lib works on a cycle and sleep.
3. We are testing the file transfer. In php there is no normal algorithm TigerHash. I'll think about how to implement it. As soon as the library will work steadily, you can download a library.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tested, downloading a file of 11 GB, using the client StrongDC. StrongDC PHPDCLib and were running on localhost. Download Speed in StrongDC was equal to 128 mb/s, which equals the speed of my RAID 0, 2 WD Green. Excellent results, the load on the processor does not exceed 5%
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Comming soon a new version of PHPDCLib.
The library has undergone many changes:
1. Since, PHP can not work in separate threads. Will run two processes are managed through sockets. If you write code in a control heavy flow, it will not cause "freezes" in the flow phpdclib. The biggest problem is the buffer management. Need to control the buffers, so they are not full, quickly cleared, and in case of an error caused an exception that can be processed.
2. In the future the library will be rewritten using libevent. But now, lib works on a cycle and sleep.
3. We are testing the file transfer. In php there is no normal algorithm TigerHash. I'll think about how to implement it. As soon as the library will work steadily, you can download a library.
I've tested, downloading a file of 11 GB, using the client StrongDC. StrongDC PHPDCLib and were running on localhost. Download Speed in StrongDC was equal to 128 mb/s, which equals the speed of my RAID 0, 2 WD Green. Excellent results, the load on the processor does not exceed 5%