Bug 26 - RegSyncServer does not close the socket the currect way
Summary: RegSyncServer does not close the socket the currect way
Status: NEW
Alias: None
Product: repro
Classification: Unclassified
Component: registrar (show other bugs)
Version: unspecified
Hardware: Other Linux
: P1 major
Assignee: Owner of all unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-09 11:19 CDT by Roee Gil
Modified: 2012-07-09 11:20 CDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roee Gil 2012-07-09 11:19:42 CDT
When closing a socket, the proper way to close (socket buffer are cleared as well):

shut down both RX and TX.
clearing the buffer (looping socket receive till nothing is left)
closing the socket

that let the OS close Repro and run it on the same second the application is closed without getting "socket binding failure"

can add code if needed (fixed it)
Comment 1 Roee Gil 2012-07-09 11:20:27 CDT
changed it to major