Bug 170598

Summary: aio_write() does not work after calling of aio_read() on the socket
Product: [Fedora] Fedora Reporter: Elena Vengerova <elena.vengerova>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: medium    
Version: 4CC: drepper
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-09 03:34:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test reproducing the problem none

Description Elena Vengerova 2005-10-13 11:30:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.7.8-2

Description of problem:
Calling of aio_read() before aio_write() on the socket leads to "in progress" state of both requests, whereas calling of aio_write() before aio_read() leads to successful completion of write request and "in progress" state of read request.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create pair of connected stream or datagram sockets.
2. Call aio_read() with correct buffer/length and none notification.
3. Call aio_write() with correct data/length and none notification.

  

Actual Results:  Data are not sent. aio_error() returns EINPROGRESS for both requests.

Expected Results:  Data should be sent, aio_error() should return 0 for write request and EINPROGRESS for read request.

Additional info:

Comment 1 Elena Vengerova 2005-10-13 11:32:27 UTC
Created attachment 119885 [details]
Test reproducing the problem

Comment 2 Ulrich Drepper 2005-11-09 03:34:34 UTC
The aio_* functions operate on files, not sockets, pipes, or whatever else.  The
implementation works correctly for files.