neo4j-php / Bolt

PHP library to provide connectivity to graph database over TCP socket with Bolt specification
https://packagist.org/packages/stefanak-michal/bolt
MIT License
73 stars 10 forks source link

modify socket write method #56

Closed wl-freedom closed 3 years ago

wl-freedom commented 3 years ago

Bolt\connection\Socket write method

stefanak-michal commented 3 years ago

Can you tell us more about this change? I like to know more.

wl-freedom commented 3 years ago

if i want wirte 90 bytes data, Only 70 bytes of data are successfully written in the first cycle,the remaining 20 bytes cannot be written, $sent is not reassigned。I am not sure whether I understand it correctly.

stefanak-michal commented 3 years ago

$send is reassigned but it contains value 70. Which means the while condition is wrong and you are right :vulcan_salute: