Bug #75591 Latest manual reffers about 'net.c', but there is no 'net.c' MySQL 4.0 or later.

Submitted: 23 Jan 2015 0:08 Modified: 27 Jan 2015 16:16
Reporter: Meiji Kimura Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / C Documentation Severity:S3 (Non-critical)
Version:5.6 OS:Any
Assigned to: Paul DuBois CPU Architecture:Any

[23 Jan 2015 0:08] Meiji Kimura
Description:
Latest manual reffers about 'net.c'.

23.8.4.2 Writing C API Threaded Client Programs

The client library is almost thread-safe. The biggest problem is that the subroutines in net.c that read from sockets are not interrupt-safe. 

http://dev.mysql.com/doc/refman/5.6/en/c-api-threaded-clients.html

But there is only in MySQL 3.23.x source code.

[root@meiji mysql-3.23.58]# find ./ -name net.c
./libmysql_r/net.c
./libmysql/net.c

There is no net.c  in MySQL 4.0 or later
[root@meiji mysql-4.0.30]# find ./ -name net.c
[root@meiji mysql-4.0.30]#

net.c in 3.23 has these functions as belows.

my_net_init
net_end
net_clear
net_flush
my_(net|real)_(read|write)
my_net_skip_rest

How to repeat:
See, 3.23, 4.0, 4.1, 5.0, 5.1, 5.5, 5.6 source codes & documents.

We can get old source codes (GPL) easily from this site (From 3.23 to 5.1)

https://dbstudy.info/mysql/

Suggested fix:
Change net.c to proper source file name in latest document.
[23 Jan 2015 7:10] MySQL Verification Team
Hello Meiji-San,

Thank you for the report.

Thanks,
Umesh
[27 Jan 2015 16:11] Paul DuBois
Looks like the file is sql/net_serv.cc now.
[27 Jan 2015 16:16] Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.